Re: adding "Back to Search results" link

From: Date: Wed, 15 Aug 2007 19:21:24 +0000
Subject: Re: adding "Back to Search results" link
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-260868@lists.php.net to get a copy of this message
Something like this might work: <a href="javascript:history.go(-1)"> (To go back 1 page) Of course if this is a form post, it would repost the data resulting in that annoying pop-up on most browsers indicating the page is being re-posted. Maybe you could write out the post variables to the session variables, and have your page 2 look for the $_POST and $_SESSION for the variables in question... -B Derek Moon wrote:
I am trying to imporve a web application that my group uses. Basically there are 3 forms that work together Form 1 > form 2 Form 1 - searchs for enterend values Form 2 - returns search results, letting you individually select any item Form 3 - lets you edit a specific individual item I want to make a link on the Form 3 that returns you to form Form 2 basically a "Back to Search results" link. I'm thinking that there is a way to pass the query string, but I am a newbie and I'm not sure that I am going about this the right way. Anyone have any advice or knowledge to share?


« previous php.general (#260868) next »