...

View Full Version : How to keep form values from resetting when using $_SERVER['PHP_SELF'];



chornbeck
08-31-2006, 07: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..

ANy ideas?

Mwnciau
08-31-2006, 07:59 PM
<form id="form" onLoad="document.getElementById('form').reset();">

Some thing like that... That is probably wrong also btw :p

chornbeck
08-31-2006, 08:09 PM
That didn't work...

Thanks for trying though...

dsavage666
08-31-2006, 09:53 PM
Do you have your values set to the variable you're entereing?


<input type=\"text\" name=\"value1\" value=\"$value1\">



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum