![]() |
back button
hi all can u help me how to get rid of this error:
i try to put a back button on every page and this is my code: PHP Code:
|
I suspect these expired pages are forms that you have submitted to your site? If so, this is a common problem with POST unfortunately.
Take a look at some of the google links below for solutions. php post refresh - Google Search Alan. |
In a nutshell, the best way to go about this is to save all the data into hidden elements on the error page, and then have your back button post all that form data back via POST, and repopulate the text fields with that data. Obviously you'll want to invent a scheme where it is all automated, and you just put something like the following as the value for your form text field elements:
php Code:
So it's all automated up to a point, unless of course you want to use Javascript to make it 100% automatic, though this isn't recommended. |
i still dont understand...sory..could u please give me an example code...(procedural please i am not good in oop)
|
as well as the back button, try implementing the following:
Code:
<input type='hidden' method='POST' name='PostValueFromLastPage'> |
PHP Code:
|
Quote:
|
| All times are GMT. The time now is 10:34 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0