make all sections of form mandatory

They have: 17 posts

Joined: Oct 2002

suppose i have only 3 fields:

NAME:
EMAIL:
MESSAGE:

i need a SHORT <script> where i can but at beginning or end of form to make sure the sender has filled all the fields. my friend gave me half page script which is very confusing and you have to add 5-6 lines in the section too Confused

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

You will need to enter some extra code in the form action line and also in the head section to make it work. Try these sites for scripts:

http://www.yourhtmlsource.com/javascript/formvalidation.html
http://www.it.maconstate.edu/tutorials/JavaScript/jscript12/review12.htm
http://www.hotscripts.com/ASP/Scripts_and_Components/Form_Processors/

Julia - if life was meant to be easy Michael Angelo would have painted the floor....

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.