Problem:
I am running apache/php server. If I populate a form,
send it and then click back I see a blank form.
Solution:
I had some prefilled form elements where I set the
value of such form element. For example I had input type = "hidden" VALUE="whatever" ... at the
beginning of the form.
when I took that hidden variable out and had it at
the end of the form after all the other elements I the
problem was solved. Actually any element with its
value preset should go to the end of the form. In that
case when I hit back my form was prefilled the way I
submitted it.
Are you saying you have something like this:
<input type="text" name="foo" value=""> <input type="hidden" name="foo" value="bar">
in order to set a default value? If that's the case, you'll never get your value of "foo" from the textbox as the hidden value will overwrite it.
The entire issue is up to the client's browser and has nothing to do with PHP. It's up to each browser whether it keeps your values or not; I've seen it happen both ways with different browsers.
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php