Hi,
I need help please. I have created an online form that I need with. I need to ensure that a couple of fields are filled in. If they aren't then a message pops up telling them to fill in these fields or they won't be able to proceed. Can anyone help me please as I don't know anything about javascript.
I have pasted the code that I have used for the form (minus the fields I don't need validated to make this smaller) below.
<head>
<title>New Enquiry</title>
<meta http-equiv="Page-Enter" content="blendTrans(Duration=1.0)">
</head>
<body bgcolor="35359A">
<FORM ACTION=" METHOD="POST">
<p align="center"> </p>
<table width="70%" border="2" align="center" cellpadding="3" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td colspan="2"><div align="center"><font color="#FFFF00" size="2" face="Verdana, Arial, Helvetica, sans-serif">* Indicates a
required field</font></div></td>
</tr>
<tr>
<td width="42%"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">First
Name</font></td>
<td width="58%"> <INPUT NAME="First Name" TYPE="text" id="First Name" SIZE=16 ></td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Last
Name </font></td>
<td><INPUT NAME="Surname" TYPE="text" id="Surname" SIZE=16 ></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">State</font></td>
<td><font face="Verdana" color="#000000"><b><font size="1" face="Arial, Helvetica, sans-serif" color="#FFFFFF">
<select name=State size=1 id="State"
style="COLOR: #000080; FONT-FAMILY: Verdana">
<option>.. Select A State ..</option>
<option value="ACT">Australian Capital Territory</option>
<option value="NSW">New South Wales</option>
<option value="NT">Northern Territory</option>
<option value="QLD">Queensland</option>
<option value="SA">South Australia</option>
<option value="TAS">Tasmania</option>
<option value="VIC">Victoria</option>
<option value="WA">Western Australia</option>
</select>
</font></b></font></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><font face="Verdana" color="#000000"><b><font size="1" face="Arial, Helvetica, sans-serif" color="#FFFFFF">
</font></b></font></td>
</tr>
<tr>
<td> </td>
<td><font face="Verdana" color="#000000"><b><font face="Verdana" color="#000000"><b><font size="1" face="Arial, Helvetica, sans-serif" color="#FFFFFF">
</font></b></font></b></font></td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Total
Est Debt: <font size="1">(excluding mortgage)</font></font></td>
<td><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" size="1">
<select name=estimated-debt size=1 id="estimated-debt"
style="COLOR: #000080; FONT-FAMILY: Verdana">
<option>Estimated Debt</option>
<option value="$4,000">$4,000</option>
<option value="$5,000">$5,000</option>
<option value="$6,000">$6,000 </option>
<option value="$7,000">$7,000 </option>
<option value="$8,000">$8,000 </option>
<option value="$9,000">$9,000 </option>
<option value="$10,000">$10,000 </option>
<option value="Over $10,000">Over $10,000 </option>
</select>
</font></td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Net
Weekly Income:</font></td>
<td><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" size="1">
<select name=NetIncome size=1 id="NetIncome"
style="COLOR: #000080; FONT-FAMILY: Verdana">
<option>Net Income</option>
<option value="Less than $627 p/w">Less than $627 p/w</option>
<option value="Over $627 p/w">Over $627 p/w</option>
</select>
</font></td>
</tr>
<tr>
<td><font color="#FFFF33" size="2" face="Verdana, Arial, Helvetica, sans-serif">*</font><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">E-mail
address </font></td>
<td>
<input name="txtFrom" type="text" id="txtFrom" size=31 maxlength="50"></td>
</tr>
</table>
<p> </p>
<p align="center"> </p>
<p align="center">
<INPUT TYPE="submit" VALUE="Send message">
<font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">or</font>
<INPUT TYPE="reset" VALUE="Reset Form">
<INPUT TYPE="hidden" NAME="txtSubject" VALUE="New Enquiry">
<INPUT TYPE="hidden" NAME="txtTo" VALUE="enquiries@foxsymes.com.au">
<INPUT TYPE="hidden" NAME="Redirect" VALUE="</FORM>
I need help please. I have created an online form that I need with. I need to ensure that a couple of fields are filled in. If they aren't then a message pops up telling them to fill in these fields or they won't be able to proceed. Can anyone help me please as I don't know anything about javascript.
I have pasted the code that I have used for the form (minus the fields I don't need validated to make this smaller) below.
<head>
<title>New Enquiry</title>
<meta http-equiv="Page-Enter" content="blendTrans(Duration=1.0)">
</head>
<body bgcolor="35359A">
<FORM ACTION=" METHOD="POST">
<p align="center"> </p>
<table width="70%" border="2" align="center" cellpadding="3" cellspacing="0" bordercolor="#FFFFFF">
<tr>
<td colspan="2"><div align="center"><font color="#FFFF00" size="2" face="Verdana, Arial, Helvetica, sans-serif">* Indicates a
required field</font></div></td>
</tr>
<tr>
<td width="42%"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">First
Name</font></td>
<td width="58%"> <INPUT NAME="First Name" TYPE="text" id="First Name" SIZE=16 ></td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Last
Name </font></td>
<td><INPUT NAME="Surname" TYPE="text" id="Surname" SIZE=16 ></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">State</font></td>
<td><font face="Verdana" color="#000000"><b><font size="1" face="Arial, Helvetica, sans-serif" color="#FFFFFF">
<select name=State size=1 id="State"
style="COLOR: #000080; FONT-FAMILY: Verdana">
<option>.. Select A State ..</option>
<option value="ACT">Australian Capital Territory</option>
<option value="NSW">New South Wales</option>
<option value="NT">Northern Territory</option>
<option value="QLD">Queensland</option>
<option value="SA">South Australia</option>
<option value="TAS">Tasmania</option>
<option value="VIC">Victoria</option>
<option value="WA">Western Australia</option>
</select>
</font></b></font></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><font face="Verdana" color="#000000"><b><font size="1" face="Arial, Helvetica, sans-serif" color="#FFFFFF">
</font></b></font></td>
</tr>
<tr>
<td> </td>
<td><font face="Verdana" color="#000000"><b><font face="Verdana" color="#000000"><b><font size="1" face="Arial, Helvetica, sans-serif" color="#FFFFFF">
</font></b></font></b></font></td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Total
Est Debt: <font size="1">(excluding mortgage)</font></font></td>
<td><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" size="1">
<select name=estimated-debt size=1 id="estimated-debt"
style="COLOR: #000080; FONT-FAMILY: Verdana">
<option>Estimated Debt</option>
<option value="$4,000">$4,000</option>
<option value="$5,000">$5,000</option>
<option value="$6,000">$6,000 </option>
<option value="$7,000">$7,000 </option>
<option value="$8,000">$8,000 </option>
<option value="$9,000">$9,000 </option>
<option value="$10,000">$10,000 </option>
<option value="Over $10,000">Over $10,000 </option>
</select>
</font></td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Net
Weekly Income:</font></td>
<td><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" size="1">
<select name=NetIncome size=1 id="NetIncome"
style="COLOR: #000080; FONT-FAMILY: Verdana">
<option>Net Income</option>
<option value="Less than $627 p/w">Less than $627 p/w</option>
<option value="Over $627 p/w">Over $627 p/w</option>
</select>
</font></td>
</tr>
<tr>
<td><font color="#FFFF33" size="2" face="Verdana, Arial, Helvetica, sans-serif">*</font><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">E-mail
address </font></td>
<td>
<input name="txtFrom" type="text" id="txtFrom" size=31 maxlength="50"></td>
</tr>
</table>
<p> </p>
<p align="center"> </p>
<p align="center">
<INPUT TYPE="submit" VALUE="Send message">
<font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">or</font>
<INPUT TYPE="reset" VALUE="Reset Form">
<INPUT TYPE="hidden" NAME="txtSubject" VALUE="New Enquiry">
<INPUT TYPE="hidden" NAME="txtTo" VALUE="enquiries@foxsymes.com.au">
<INPUT TYPE="hidden" NAME="Redirect" VALUE="</FORM>