For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > April 2005 > Re: [PEAR] HTML_Quickform and prevent from populating









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] HTML_Quickform and prevent from populating
Lee Braiden

2005-04-25, 8:57 am

On Sunday 24 Apr 2005 20:06, jonathan twaddell wrote:
> When I make a form and submit it and process it, I have a problem where if
> you hit the back button, it gives you the form filled in with the values
> you set it at since it sees those values in the post. How would I prevent
> this?


> I've done a workaround where i set a default value="" but that seems
> kinda ugly.


If it wasn't for this last line, I'd say it's certainly your browser filling
that in. Makes a lot of sense to me: if I go back to the previous page, I
want my browser to recall the state I left that page in.

--
Lee Braiden
http://www.DigitalUnleashed.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com