Hi, a possible solution is also to provide the backbutton href with the original variable values...
print "<a href='bladibla.php?var1=val1&var2=val2'>back</a>\n"; Greets, Edward ----- Original Message ----- From: "Nick Wilson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 28, 2002 9:57 AM Subject: Re: [PHP] Back button to Query Pages > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > * and then phantom blurted.... > > Page 1 is a list of people's names (queried by State). > > > > Page 2 is each person's profile. > > > > When I hit the back button on Page 2 it tells me it has to requery the > > List on Page 1 (apparently not stored in the client's browser cache). > > Is there anyway to make it use the cached copy instead of requeurying > > the database? I know using Active Server Pages you could do this. > > Tough one. > This will need some experimentation as I'm just speculating a theory.... > Set a session var on page 1 *after* a successfull query. > At the beginning of page 1 test to see if the var is set, > If so just print the peoples names as if the query were run, if not > run the query. > > I have no idea if that will help but I hope it provides a little > inspiration anyhow :-) > - -- > > Nick Wilson > > Tel: +45 3325 0688 > Fax: +45 3325 0677 > Web: www.explodingnet.com > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > > iD8DBQE8VRJ2HpvrrTa6L5oRAkWYAJ45ckNJHxjlvz5i/pMKVSkXjwgItgCfbLZA > fXxmthm2VEP5nqjv1Zj+j0Y= > =R2HK > -----END PGP SIGNATURE----- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]