PDA

View Full Version : Form


MattG1225
04-18-2003, 05:46 PM
I have a simple form on a client website. They requested that all the fields be mandatory. Is there a way I can have a message appear if the user skips a field when clicking on Submit?
Here is the code:


<FORM METHOD=post ENCTYPE=text/plain ACTION="mailto:email.com">
Name:<br><INPUT NAME="Name:" SIZE="50"><br>
Title:<br><INPUT Name="Title:" SIZE="50"><br>
Company Name:<br><INPUT Name="Company_Name:" SIZE="50"><br>
Mailing Address:<br><TEXTAREA name="Mailing_Address:" rows=2 cols=38></textarea><br>
Email:<br><INPUT Name="Email:" SIZE="50"><br>
Phone Number:<br><INPUT Name="Phone_Number:" SIZE="50"><br>
How did you hear about us:<br><TEXTAREA name="How_did_you_hear_about_IC:" rows=3 cols=38></textarea><br><br>
<DIV ALIGN="center"><INPUT TYPE="submit" NAME="submit" VALUE="Submit Form"></DIV><br>

zoobie
04-18-2003, 07:38 PM
It's called form validation...Plenty at www.hotscripts.com under javascripts>forms>form validation. :D