Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
December 11, 2007, 1:32 pm
rate this thread
attribute on the form tag calls itself, so that I can validate the
validate fields, etc.
All works well; fields like e-mail addresses are correctly validated
with one notable exception.
The <input type="reset" ... only works the first time the form is
If there are any problems with the fields, causing the form to refresh
with advisory data, then the Clear button does not function.
I am unable to explain this. Has anyone spotted anything similar? Do
you know why? Is there a workaround?
Re: Clear Button malfunction on HTML form generated by PHP
<input type=3D"reset"> doesn _not_ empty all the values, rather it reset=
all form values to the one in the HTMl source.
So if you're kind enough to provide them with the previous values so =
they'll only have to change the incorrect one, those will be set. If you=
want a 'clear' button instead of a 'reset' button, you'll either have to=
crisp form to the user on that post value.