Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Search Criteria on Results page

Status
Not open for further replies.

mdmatt

Technical User
Dec 17, 2007
19
US
I have a search form with 4 text input boxes. I would like to have the input criteria forwarded on to my results page. This way we can see what we initially searched for, while we look at our results.
Thank you for your help.
 
so you have a separate results page from your search page? for a total of three pages?

most people use just two pages -- the form page, and a search/results page, with the form fields being passed to the search/results page

so why do you have an extra page?

r937.com | rudy.ca
 
I am sorry, I will supply some more info...
I have created a image retrieval system for an archival construction drawing database. Querying the database to retrieve our scanned plans from a generic location. I am using a flash format form titled "search.cfm", this form has 4 text inputs and one select option. When "search.cfm" is submitted, it opens a result page which displays all of the records that meet the query, grouped by 3 fields. I then select a group to see another results page which has thumbnails of our const4ruction plans and image data for the group. I then select a submit button to view the individual image.
I would like to be able to forward the initial inputted query criteria through each results page.
I hope that this makes it clearer, thank you for your quick response.
 
> When "search.cfm" is submitted, it opens a result page which displays all of the records that meet the query, grouped by 3 fields.

at this point, you have the form fields available, so display them

> I then select a group to see another results page which has thumbnails of our const4ruction plans and image data for the group.

this actually is a different query, and when you "select a group" you would want to pass those criteria

you could use hidden form fields if you still want to carry over the values from the first form


r937.com | rudy.ca
 
Got it! Thank you for your help, it works like a charm.
This is the code that I used to get it to work...

<cfform preservedata="yes" value="searchcriteria">
<cfinput type="text" name="project_name" value="#DPWProjectPlan_Search.project_name#"> </cfform>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top