1.

Solve : Required fields?

Answer»

I have created a form in HTML and some of the fields must be filled in before the form is submitted.  INSIDE my form tags I have the following line



If I leave these fields blank and click the Submit button, the form is still sent and I do not get a message telling me that some fields were not filled in.

What am I doing wrong?HTML forms do not work like that.  You'd need to use javascript form VALIDATION, or server-side validation.  Google for "javascript form validation" to learn more. QUOTE

<input type=hidden name="required" value="email,realname,phone">

If I leave these fields blank and click the Submit button, the form is still sent and I do not get a message telling me that some fields were not filled in.


Are you hand coding this, or using a WYSIWYG program, like FrontPage or Dreamweaver?SHALL we just leave this thread to rest in peace?   Quote
Quote
<input type=hidden name="required" value="email,realname,phone">

If I leave these fields blank and click the Submit button, the form is still sent and I do not get a message telling me that some fields were not filled in.


Are you hand coding this, or using a WYSIWYG program, like FrontPage or Dreamweaver?

Why did you ask that question anyway, does it matter?Because that code LOOKS... bizarre. First, no quotes. Then quotes. Then a wacky value for "value". It's odd. I think it was hand-coded.


Discussion

No Comment Found