Forum Moderators: coopster

Message Too Old, No Replies

$ POST['submit'] Resetting Form Fields

         

nolim8ts

1:16 pm on Feb 18, 2010 (gmt 0)

10+ Year Member



Hi All,

I'm using the following validation script [html-form-guide.com ] and when submitting the form, if data from a required field is missing, all the form fields are reset and the error message returned. How would I prevent the form fields from being reset until validation passes. I can post the code on request.

jatar_k

1:32 pm on Feb 18, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



on a very quick look you probably need to add a value="" to your form elements and then echo the values the user posted through the form.

I don't think they are being reset, just not output