RE: [PHP-DB] Problem when using browder back button
I am a bit confused. I have built a web site from dynamic pages using PHP Mysql. When a user selects an item from a drop down list that takes then to a detail page. When they click back on the browser button they get a message about the page has expired. Is this an issue of session or cookie? How do I correct this ? It's an issue of using POST instead of GET and has nothing to do with PHP. Most browsers won't re-post POST data for you for security reasons. GET, however, is just a URL with a query string, so it simply requests it. ---John W. Holmes... Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Problem when using browder back button
It's an issue of using POST instead of GET and has nothing to do with PHP. Most browsers won't re-post POST data for you for security reasons. GET, however, is just a URL with a query string, so it simply requests it. Assuming you can't re-write the POST inputs as GETs, is there a way around this so users don't have to see that error? matt -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Problem when using browder back button
It's an issue of using POST instead of GET and has nothing to do with PHP. Most browsers won't re-post POST data for you for security reasons. GET, however, is just a URL with a query string, so it simply requests it. Assuming you can't re-write the POST inputs as GETs, is there a way around this so users don't have to see that error? Don't show any page that's created by a POST operation. If you must use POST in your forms, use a middle-man page that processes the form, inserts the data into the database or whatever, and redirects using header() back to another page. Then the user can go back and forth without issues. ---John W. Holmes... Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php