|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
I have a results page that displays search results from a database (searches are made via a Form on the search page). (I pass the form data to these pages by using a URL Parameter). The problem i have is how to provide a Navigation link to the original set of results from these other pages. I assume that I have to find some way to resubmit the original Form data somehow? How can this be done? If the answer is sessions what exactly must i "CFSET"?
Although the script Code:
<input type="button" name="submit" value="Go Back" onClick="history.go(-1)"> Any ideas r welcome -Alas |
|
#2
|
|||
|
|||
|
You could also set a cookie value. But if you want to use sessions, and assuming that you have session management enabled on the server and in your cfapplication tag, you just do something like this:
<cfset session.resultsURL = "myresultpage.cfm?anyurlvar=value" /> And then to make the link you'd do: <a href="#session.resultsURL#">Back to Results</a>
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
||||
|
||||
|
kitless is right, you can use cookies to accomplish this, but you could also have a cfset tag to set the key words you typed in to your search and have that act as a back marker of some sort......
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Back to results page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|