Thread: back button
View Single Post
Old 01-15-2008, 12:42 AM   #3 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

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:
echo $this->getPost('username');

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.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote