View Full Version : How to keep form values from resetting when using $_SERVER['PHP_SELF'];
08-31-2006, 08:49 PM
I have a form that sends its values to a php scrpt that is on the same page as the form, hence the $_SERVER['PHP_SELF']; target for the form.
What I'm trying to do is not have the form values reset when the form submits..
08-31-2006, 08:59 PM
<form id="form" onLoad="document.getElementById('form').reset();">
Some thing like that... That is probably wrong also btw :p
08-31-2006, 09:09 PM
That didn't work...
Thanks for trying though...
08-31-2006, 10:53 PM
Do you have your values set to the variable you're entereing?
<input type=\"text\" name=\"value1\" value=\"$value1\">
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.