Hi
I'm trying to make a link that refers back to the last page but the last page contained a db query with various variable values.I think I could append the query details to the link but is that safe. What are my options.
Any help appreciated.
Sean
[SOLVED] last page link
Moderator: General Moderators
Yeah I tried thatfeyd wrote:store the previous page information you need in a session or set of session variables.
if(!$_SESSION["backwards"]){
$_SESSION["backwards"]=$qry;
}
I have lots of links calling the one script so the sql differs each time.
I have one page up that has been generated by a query then when I click a link on that page calling the same script, the query is then overwritten by that qry so the last one is lost and I cant get back
If that makes sense
Sean
Hifeyd wrote:what about storing a history if you need to go back farther? Or the Javascript history object...
I tried using javascript:history.go(-1) which strangely works in other parts of my site in similar circumstances but not here
Anyway I got it figured out in the end with a few if's in the right places
Thanks for you quick response and help
Sean