Hi, I just need some information about how best to proceed with a project I'm working on.
I have 5 pages:
1) a search page where users enter keywords to find other users that match the submitted criteria
2) a results page that presents a list of the returned matches
3) a viewing page - each match (from 2) has a link that takes the user to this page that gives more information about the matched user
4) a comments page - from the viewing page the user can access another page that contains comments / feedback about the matched user that has been submitted by other users (similar to ebay).
5) a message page - where the user can leave a message (a bit like a forum post) for the matched user.
So with the setup described above what would be the best way to implement this so that as a searching user you can enter some search criteria, view the results page, select a result and view the detailed profile, view any comments left, leave a message and then get back to the previous pages.
For example the results page so you can select a different matched user or back to the search page that still contains the original search criteria you entered and then give the user the choice of changing it completely or adding to it for another search.
Is there a way to do this to avoid multple database calls so that everytime the user goes back to the results page or the viewing page the queries are not repeated?
Would it be a better solution to incorporate the comments page into the viewing page as an optional include()?
I was looking into using pop-up windows, where the detailed profile of a matched user (selected from the results page) would appear in a pop-up, but this isn't ideal because of the comments and message pages.
I don't really want the users to use the back button to achieve this - also this will resubmit the data anyway.
I know its a long one but any suggestions would be appreciated.
Thanks
rj
[SOLVED]Search results presentation
Moderator: General Moderators
-
rubberjohn
- Forum Contributor
- Posts: 193
- Joined: Fri Feb 25, 2005 4:03 am
[SOLVED]Search results presentation
Last edited by rubberjohn on Sun Mar 26, 2006 4:31 pm, edited 1 time in total.
-
rubberjohn
- Forum Contributor
- Posts: 193
- Joined: Fri Feb 25, 2005 4:03 am
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Massive arrays have issues in PHP, but that limit is often beyond what most people will see (above 10000 elements, depending on memory usage, in my experience)
As for the post-redirection trick, Roja wrote:Post-Redirect-Get pattern.
Solves the issues mentioned.
-
rubberjohn
- Forum Contributor
- Posts: 193
- Joined: Fri Feb 25, 2005 4:03 am
-
rubberjohn
- Forum Contributor
- Posts: 193
- Joined: Fri Feb 25, 2005 4:03 am