KBadler - 2006-12-30

I just setup another form made some changes, how can I troubleshoot a 404 error, below is my code. I only changed the form page, the process.php is also below it hasn't been changed.

Form page :

<script language=javascript name="J-BotPhoneValid" > <!--
// Webs Unlimited's J-BOTS FrontPage  JavaScript Generator version 4.0
// Copyright Webs Unlimited 1998,1999 All rights reserved - http://WebsUnlimited.com
function IsIn(value,search) {
    if(search.indexOf(value) != -1) {
      return 1;
} else {
        return 0;
   }
}
function PhoneValid(mask,prompt,el) {
var alpha = "-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒšœŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ";
var number = "0123456789";
var value = "";
var pos = 0;
var ch = "";
if(el.value.length != mask.length) {
    alert(prompt);
    return false;
}
while (pos < mask.length) {
value += el.value.charAt(pos);
ch = mask.charAt(pos);
if (ch == '9') {  // check for numeric
     if(!IsIn(el.value.charAt(pos++),number)) {
         alert(prompt);
         el.value = value.substring(0,value.length-1);
         return false;
     }
} else {    
if(ch == 'A') { // check for alpha
     if(!IsIn(el.value.charAt(pos++),alpha)) {
         alert(prompt);
         el.value = value.substring(0,value.length-1);
         return false;
     }
     break;
} else {
if(ch == '?') {  // optional value
    pos++;
   break;
} else {
      if(!IsIn(el.value.charAt(pos),mask.charAt(pos))) {
         alert(prompt);
         el.value = value.substring(0,value.length-1);
         return false;
     }
     pos++;
}}} // end of if switch   
} // while loop
return true;
} // function
//--></script><SCRIPT ID="J-BotDATEPICKER" LANGUAGE="JavaScript" SRC="../../../_WUScripts/calendar.js">
</SCRIPT><form enctype='multipart/form-data' action='process.php' method='post' onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1">
<table border="1" cellspacing="1" style="border-collapse: collapse" bordercolor="#000066" width="95%" cellpadding="5">
<tr>
<td colspan="3" bgcolor="#B5CBEF" height="17" width="100%" bordercolor="#FFFFFF" background="tile_back.gif">
<p align="left\&gt;<b><font face="Verdana" size="2" color="#FFFFFF"><img border="0" src="nav_m.gif" width="8" height="8">
<b>
<font face='Verdana' size=2 color='#FFFFFF'>
<!- You can add a form title here -->
&nbsp;
</font><font face="Verdana" size="2" color="#000066"> Membership Application</font></b></td>
</tr><tr><td colspan="3" bgcolor="#B5CBEF" height="16" width="100%" bordercolor="#FFFFFF" background="tile_sub.gif"><font size="2" face="Verdana"><b><font face="Verdana" size="2" color="#000066">
<!- You can add a brief form description here-->
&nbsp;
</font></b></font></td></tr><tr><td colspan="3" bgcolor="#D6DFEF" height="16" width="100%" bordercolor="#FFFFFF"><font size="1" face="Verdana">Please fill in all fields marked with a *</font></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
<td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Date of Application *</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><!--webbot bot="Validation" b-value-required="TRUE" --><input type=text name='DateofApplication' size="10"><A ID="DatePickerDateofApplication" HREF="javascript:void(0)" onClick="setDateField(document.FrontPage_Form1.DateofApplication);calDateFormat='mm/dd/yyyy';top.newWin = window.open('../../../_JBots/calender.htm','cal','dependent=yes,width=210,height=230,screenX=200,screenY=300,titlebar=yes')"><IMG SRC="../../../images/calendarmini.gif" BORDER="0" ></A>
<font size="2">MM/DD/YYYY</font></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Position of Interest *</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><font size="2">
<input type="radio" value="V1" name="positionofinterest">Junior/Cadet
<input type="radio" value="V2" name="positionofinterest" checked>Interior
Structural Firefighter</font><p><font size="2">
<input type="radio" value="V3" name="positionofinterest"> Support&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" value="V4" name="positionofinterest">Administrative</font></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">First Name *</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><input type=text name='FirstName'></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Last Name *</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><input type=text name='LastName'></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Middle Initial *</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><input type=text name='MiddleInitial' size="1"></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Date of Birth *</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><!--webbot bot="Validation" b-value-required="TRUE" -->
<input type=text name='DateofBirth' size="10"><A ID="DatePickerDateofBirth" HREF="javascript:void(0)" onClick="setDateField(document.FrontPage_Form1.DateofBirth);calDateFormat='mm/dd/yyyy';top.newWin = window.open('../../../_JBots/calender.htm','cal','dependent=yes,width=210,height=230,screenX=200,screenY=300,titlebar=yes')"><IMG SRC="../../../images/calendarmini.gif" BORDER="0" ></A><font size="2">MM/DD/YYYY</font></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Street Address *</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><input type=text name='StreetAddress'></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">City *</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><input type=text name='City'></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">How Long Have You Lived at Address?</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana">
&nbsp;<!--webbot bot="Validation" s-data-type="String" b-allow-digits="TRUE" --><input type=text name='HowLongHaveYouLivedatAddress' size="2">* </td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Home Telephone</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><!--webbot bot="Validation" b-value-required="TRUE" -->
<input type=text name='HomeTelephone' value="999-999-9999" size="12">*</td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Mobile Telephone</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><!--webbot bot="Validation" b-value-required="TRUE" --><input type=text name='MobileTelephone' value="999-999-9999" size="12">*</td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Place of Birth City and State</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><input type=text name='PlaceofBirthCityandState'>*</td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Email Address</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><input type=text name='EmailAddress'>*</td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">How Long have you lived in the State of New Jersey</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana">
<input type=text name='HowLonghaveyoulivedintheStateofNewJersey' size="5">*
<font size="2">In Years</font></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Are You a Citizen of the United States of America</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><select name='AreYouaCitizenoftheUnitedStatesofAmerica'><option value='Yes'>Yes<option value='No'>No</select>*</td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Are you a Licensed Driver</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><select name='AreyouaLicensedDriver'><option value='Yes'>Yes<option value='No'>No</select>*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
&nbsp;</td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font size="2" face="Verdana">If So:</font></td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
&nbsp;</td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
&nbsp;</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana">
<font face="Verdana" size="2">Auto How Long&nbsp; </font>
<input type=text name='AutoHowLong' size="2">&nbsp;&nbsp;&nbsp; </td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
&nbsp;</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana">
<font face="Verdana" size="2">Truck How Long </font>
<input type=text name='TruckHowLong' size="2"></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
&nbsp;</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana">
<font face="Verdana" size="2">Bus How Long&nbsp;&nbsp;&nbsp; </font>
<input type=text name='BusHowLong' size="2"></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Any accidents in the Last 3 years</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><select name='AnyaccidentsintheLast3years' size="1"><option value='No'>No<option value='Yes'>Yes</select></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Have you ever had your License Suspended</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><select name='HaveyoueverhadyourLicenseSuspended' size="1"><option value='No'>No<option value='Yes'>Yes</select>*</td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF" valign="top">
<font face="Verdana" size="2">Drivers License Number<p>License Class</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><input type=text name='DriversLicenseNumber' size="26">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<!--webbot bot="Validation" b-disallow-first-item="TRUE" -->
<select name="state" size="1">
    <option selected value="Select Driver License State">Select Driver License State
    </option>
    <option value="NJ">New Jersey</option>
    <option value="NY">New York</option>
    <option value="AL">Alabama</option>
    <option value="AK">Alaska</option>
    <option value="AZ">Arizona</option>
    <option value="AR">Arkansas</option>
    <option value="CA">California</option>
    <option value="CO">Colorado</option>
    <option value="CT">Connecticut</option>
    <option value="DE">Delaware</option>
    <option value="DC">Dist of Columbia</option>
    <option value="FL">Florida</option>
    <option value="GA">Georgia</option>
    <option value="HI">Hawaii</option>
    <option value="ID">Idaho</option>
    <option value="IL">Illinois</option>
    <option value="IN">Indiana</option>
    <option value="IA">Iowa</option>
    <option value="KS">Kansas</option>
    <option value="KY">Kentucky</option>
    <option value="LA">Louisiana</option>
    <option value="ME">Maine</option>
    <option value="MD">Maryland</option>
    <option value="MA">Massachusetts</option>
    <option value="MI">Michigan</option>
    <option value="MN">Minnesota</option>
    <option value="MS">Mississippi</option>
    <option value="MO">Missouri</option>
    <option value="MT">Montana</option>
    <option value="NE">Nebraska</option>
    <option value="NV">Nevada</option>
    <option value="NH">New Hampshire</option>
    <option value="NM">New Mexico</option>
    <option value="NC">North Carolina</option>
    <option value="ND">North Dakota</option>
    <option value="OH">Ohio</option>
    <option value="OK">Oklahoma</option>
    <option value="OR">Oregon</option>
    <option value="PA">Pennsylvania</option>
    <option value="RI">Rhode Island</option>
    <option value="SC">South Carolina</option>
    <option value="SD">South Dakota</option>
    <option value="TN">Tennessee</option>
    <option value="TX">Texas</option>
    <option value="UT">Utah</option>
    <option value="VT">Vermont</option>
    <option value="VA">Virginia</option>
    <option value="WA">Washington</option>
    <option value="WV">West Virginia</option>
    <option value="WI">Wisconsin</option>
    <option value="WY">Wyoming</option>
</select><font size="2"> </font>
<p><font size="2">
<!--webbot bot="Validation" S-Display-Name="Please Select Driver License Type" B-Disallow-First-Item="TRUE" -->
<select size="1" name="LicenseClass">
<option value="Select Driver License Type">Select Driver License Type</option>
<option value="Basic Driver License (Class D)">Basic Driver License (Class D)
</option>
<option value="Commercial Driver License (Class C)">Commercial Driver License (Class C)
</option>
<option value="Commercial Driver License (Class B)">Commercial Driver License (Class B)
</option>
<option value="Commercial Driver License (Class A)">Commercial Driver License (Class A)
</option>
</select></font></td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Have You Ever Been Convicted of a Crime</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><select name='HaveYouEverBeenConvictedofaCrime' size="1"><option value='No'>No<option value='Yes'>Yes</select>*</td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Will you permit a Police Department Record Check</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><select name='WillyoupermitaPoliceDepartmentRecordCheck'><option value='Yes'>Yes<option value='No'>No</select>*</td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<img border="0" src="bc_new.gif" width="28" height="28"></td>
    <td height="30" width="201" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana" size="2">Signature</td>
<td height="30" width="460" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><input type=checkbox name='Signature'>* <i>
<font size="2" color="#008000">By Checking this Box you are Declaring all the
above answers are true to the best of my knowledge and belief. It is understood
that any false statement on this application is sufficient cause for rejection
or dismissal.</font></i><p><i><font size="2" color="#008000">Also if acceptance
is obtained under this application, i Further agree to comply with all orders,
rules and regulations of the Robertsville Volunteer Fire Company. I further
agree to submit to a physical examination. </font></i></td></tr><tr><td colspan="3" bgcolor="#B5CBEF" height="25" width="737" background="tile_sub.gif"><p align="center"><font face="Verdana" size="2">
    <input type=submit value='Submit Form' name="Field29">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type=reset value='Reset Form' name="Field30"></font></td></tr>
</table></form> <br><!--webbot bot="PHONEVALID" WIP="yes" startspan Preview="[Validate Phone Number Field- FrontPage_Form1.HomeTelephone (text) ]" s-formname="FrontPage_Form1" s-fieldname="HomeTelephone (text)" s-phonemask="999-999-9999" tag="p" b-required="1" s-errorprompt="The number you entere %V is not in the format 999-999-9999, Please Use appropriate format" clientside -->

<script language="JavaScript">
// Webs Unlimited's J-BOTS FrontPage  JavaScript Generator version 4.0
// Copyright Webs Unlimited 1998,1999 All rights reserved - http://WebsUnlimited.com
document.FrontPage_Form1.HomeTelephone.onblur = new Function("javascript: sValue = document.FrontPage_Form1.HomeTelephone.value; sMessage = ''; sPrompt = 'The number you entere %V is not in the format 999-999-9999, Please Use appropriate format'; pos = sPrompt.indexOf('%V'); if(pos != -1) {   sMessage = sPrompt.substring(0,pos);   sMessage += sValue;   sMessage += sPrompt.substring(pos+2,sPrompt.length); } else sMessage = sPrompt;  if(!PhoneValid('999-999-9999',sMessage,document.FrontPage_Form1.HomeTelephone)) {  this.focus(); }");
//--></script><!--webbot bot="PHONEVALID" endspan i-checksum="28889" --><br>&nbsp;<p><!--webbot bot="PHONEVALID" WIP="yes" startspan Preview="[Validate Phone Number Field- FrontPage_Form1.MobileTelephone (text) ]" s-formname="FrontPage_Form1" s-fieldname="MobileTelephone (text)" s-phonemask="999-999-9999" tag="p" b-required="1" s-errorprompt="The number you entered %V is not in the format 999-999-9999, Please use proper format and re-enter." clientside -->

<script language="JavaScript">
// Webs Unlimited's J-BOTS FrontPage  JavaScript Generator version 4.0
// Copyright Webs Unlimited 1998,1999 All rights reserved - http://WebsUnlimited.com
document.FrontPage_Form1.MobileTelephone.onblur = new Function("javascript: sValue = document.FrontPage_Form1.MobileTelephone.value; sMessage = ''; sPrompt = 'The number you entered %V is not in the format 999-999-9999, Please use proper format and re-enter.'; pos = sPrompt.indexOf('%V'); if(pos != -1) {   sMessage = sPrompt.substring(0,pos);   sMessage += sValue;   sMessage += sPrompt.substring(pos+2,sPrompt.length); } else sMessage = sPrompt;  if(!PhoneValid('999-999-9999',sMessage,document.FrontPage_Form1.MobileTelephone)) {  this.focus(); }");
//--></script><!--webbot bot="PHONEVALID" endspan i-checksum="14212" --></p>
<p><!--webbot bot="PHONEVALID" WIP="yes" startspan Preview="[Validate Phone Number Field- FrontPage_Form1.DateofBirth (text) ]" s-formname="FrontPage_Form1" s-fieldname="DateofBirth (text)" s-phonemask="99/99/9999" tag="p" b-required="1" s-errorprompt="The date you entered %V is not in the proper format. MM/DD/YYYY" clientside -->

<script language="JavaScript">
// Webs Unlimited's J-BOTS FrontPage  JavaScript Generator version 4.0
// Copyright Webs Unlimited 1998,1999 All rights reserved - http://WebsUnlimited.com
document.FrontPage_Form1.DateofBirth.onblur = new Function("javascript: sValue = document.FrontPage_Form1.DateofBirth.value; sMessage = ''; sPrompt = 'The date you entered %V is not in the proper format. MM/DD/YYYY'; pos = sPrompt.indexOf('%V'); if(pos != -1) {   sMessage = sPrompt.substring(0,pos);   sMessage += sValue;   sMessage += sPrompt.substring(pos+2,sPrompt.length); } else sMessage = sPrompt;  if(!PhoneValid('99/99/9999',sMessage,document.FrontPage_Form1.DateofBirth)) {  this.focus(); }");
//--></script><!--webbot bot="PHONEVALID" endspan i-checksum="4036" --></p>
<p>
<!--webbot bot="JBOT" WIP="yes" startspan Preview="[Date Picker]" s-colorfocus="16711731" s-calfamily="@Arial Unicode MS" s-form="FrontPage_Form1" S-Class="datepicker" s-colorhover="16777062" s-colorcell="13421772" tag="p" s-headweight="Normal" s-calstyle="Normal" s-headsize="8pt" s-colortable="13421772" s-format="mm/dd/yyyy" s-calweight="Normal" s-field="DateofApplication" s-headstyle="Normal" s-colorheadingtext="3342438" u-image="../../../images/calendarmini.gif" s-calsize="8pt" s-colorheaddingcell="16777215" s-colorbottom="255" s-colortop="77777777" s-headfamily="@Arial Unicode MS" s-colorhighlite="10092543" s-colordate="255" -->
<script LANGUAGE="JavaScript">
// Copyright 2004 Webs Unlimited, Inc.
// CALENDAR COLORS
topBackground    = '#71CBA2';
bottomBackground = '#FF0000';
tableBGColor     = '#CCCCCC';
cellColor        = '#CCCCCC';
highlightCellColor = '#FFFF99';
headingCellColor = '#FFFFFF';
headingTextColor = '#660033';
dateColor        = '#FF0000';
focusColor       = '#3300FF';
hoverColor       = '#66FFFF';
fontStyle        = '@Arial Unicode MS 8pt Normal Normal';
headingFontStyle = '@Arial Unicode MS 8pt Normal Normal';
bottomBorder  = false;
tableBorder   = 0;
winPrefs = 'dependent=yes,width=210,height=230,screenX=200,screenY=300,titlebar=yes';
calDateFormat = 'mm/dd/yyyy';
</script>
<!--webbot bot="JBOT" endspan i-checksum="42098" -->
<!--webbot bot="JBOT" WIP="yes" startspan Preview="[Date Picker]" s-colorfocus="16711731" s-calfamily="@Arial Unicode MS" s-form="FrontPage_Form1" S-Class="datepicker" s-colorhover="16777062" s-colorcell="13421772" tag="p" s-headweight="Normal" s-calstyle="Normal" s-headsize="8pt" s-colortable="13421772" s-format="mm/dd/yyyy" s-calweight="Normal" s-field="DateofBirth" s-headstyle="Normal" s-colorheadingtext="3342438" u-image="../../../images/calendarmini.gif" s-calsize="8pt" s-colorheaddingcell="16777215" s-colorbottom="255" s-colortop="77777777" s-headfamily="@Arial Unicode MS" s-colorhighlite="10092543" s-colordate="255" -->
<script LANGUAGE="JavaScript">
// Copyright 2004 Webs Unlimited, Inc.
// CALENDAR COLORS
topBackground    = '#71CBA2';
bottomBackground = '#FF0000';
tableBGColor     = '#CCCCCC';
cellColor        = '#CCCCCC';
highlightCellColor = '#FFFF99';
headingCellColor = '#FFFFFF';
headingTextColor = '#660033';
dateColor        = '#FF0000';
focusColor       = '#3300FF';
hoverColor       = '#66FFFF';
fontStyle        = '@Arial Unicode MS 8pt Normal Normal';
headingFontStyle = '@Arial Unicode MS 8pt Normal Normal';
bottomBorder  = false;
tableBorder   = 0;
winPrefs = 'dependent=yes,width=210,height=230,screenX=200,screenY=300,titlebar=yes';
calDateFormat = 'mm/dd/yyyy';
</script>
<!--webbot bot="JBOT" endspan i-checksum="42098" --></p>
<p>&nbsp;</p>

Process.php
<?php
include("global.inc.php");
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','DateofApplication');
pt_register('POST','PositionofInterest');
pt_register('POST','FirstName');
pt_register('POST','LastName');
pt_register('POST','MiddleInitial');
pt_register('POST','DateofBirth');
pt_register('POST','StreetAddress');
pt_register('POST','City');
pt_register('POST','HowLongHaveYouLivedatAddress');
pt_register('POST','HomeTelephone');
pt_register('POST','MobileTelephone');
pt_register('POST','PlaceofBirthCityandState');
pt_register('POST','EmailAddress');
pt_register('POST','HowLonghaveyoulivedintheStateofNewJersey');
pt_register('POST','AreYouaCitizenoftheUnitedStatesofAmerica');
pt_register('POST','AreyouaLicensedDriver');
pt_register('POST','AutoHowLong');
pt_register('POST','TruckHowLong');
pt_register('POST','BusHowLong');
pt_register('POST','AnyaccidentsintheLast3years');
pt_register('POST','HaveyoueverhadyourLicenseSuspended');
pt_register('POST','DriversLicenseNumber');
pt_register('POST','HaveYouEverBeenConvictedofaCrime');
pt_register('POST','WillyoupermitaPoliceDepartmentRecordCheck');
pt_register('POST','Signature');
if($DateofApplication=="" || $PositionofInterest=="" || $FirstName=="" || $LastName=="" || $MiddleInitial=="" || $DateofBirth=="" || $StreetAddress=="" || $City=="" || $HowLongHaveYouLivedatAddress=="" || $HomeTelephone=="" || $MobileTelephone=="" || $PlaceofBirthCityandState=="" || $EmailAddress=="" || $HowLonghaveyoulivedintheStateofNewJersey=="" || $AreYouaCitizenoftheUnitedStatesofAmerica=="" || $AreyouaLicensedDriver=="" || $HaveyoueverhadyourLicenseSuspended=="" || $HaveYouEverBeenConvictedofaCrime=="" || $WillyoupermitaPoliceDepartmentRecordCheck=="" || $Signature=="" ){
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Anywhere there is a Field with an Asterisk (*) must be completed.  Please go back and try again.";
}
if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$EmailAddress)){
$error.="<li>Invalid email address entered";
$errors=1;
}
if($errors==1) echo $error;
else{
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
$message="Date of Application: ".$DateofApplication."
Position of Interest: ".$PositionofInterest."
First Name: ".$FirstName."
Last Name: ".$LastName."
Middle Initial: ".$MiddleInitial."
Date of Birth: ".$DateofBirth."
Street Address: ".$StreetAddress."
City: ".$City."
How Long Have You Lived at Address: ".$HowLongHaveYouLivedatAddress."
Home Telephone: ".$HomeTelephone."
Mobile Telephone: ".$MobileTelephone."
Place of Birth City and State: ".$PlaceofBirthCityandState."
Email Address: ".$EmailAddress."
How Long have you lived in the State of New Jersey: ".$HowLonghaveyoulivedintheStateofNewJersey."
Are You a Citizen of the United States of America: ".$AreYouaCitizenoftheUnitedStatesofAmerica."
Are you a Licensed Driver: ".$AreyouaLicensedDriver."
Auto How Long: ".$AutoHowLong."
Truck How Long: ".$TruckHowLong."
Bus How Long: ".$BusHowLong."
Any accidents in the Last 3 years: ".$AnyaccidentsintheLast3years."
Have you ever had your License Suspended: ".$HaveyoueverhadyourLicenseSuspended."
Drivers License Number: ".$DriversLicenseNumber."
Have You Ever Been Convicted of a Crime: ".$HaveYouEverBeenConvictedofaCrime."
Will you permit a Police Department Record Check: ".$WillyoupermitaPoliceDepartmentRecordCheck."
Signature: ".$Signature."
";
$message = stripslashes($message);
mail("email@domain.org","Form Submitted at your website",$message,"From: phpFormGenerator");
?>

<!-- This is the content of the Thank you page, be careful while changing it -->

<h2>Thank you!</h2>

<table width=50%>
<tr><td>Date of Application: </td><td> <?php echo $DateofApplication; ?> </td></tr>
<tr><td>Position of Interest: </td><td> <?php echo $PositionofInterest; ?> </td></tr>
<tr><td>First Name: </td><td> <?php echo $FirstName; ?> </td></tr>
<tr><td>Last Name: </td><td> <?php echo $LastName; ?> </td></tr>
<tr><td>Middle Initial: </td><td> <?php echo $MiddleInitial; ?> </td></tr>
<tr><td>Date of Birth: </td><td> <?php echo $DateofBirth; ?> </td></tr>
<tr><td>Street Address: </td><td> <?php echo $StreetAddress; ?> </td></tr>
<tr><td>City: </td><td> <?php echo $City; ?> </td></tr>
<tr><td>How Long Have You Lived at Address: </td><td> <?php echo $HowLongHaveYouLivedatAddress; ?> </td></tr>
<tr><td>Home Telephone: </td><td> <?php echo $HomeTelephone; ?> </td></tr>
<tr><td>Mobile Telephone: </td><td> <?php echo $MobileTelephone; ?> </td></tr>
<tr><td>Place of Birth City and State: </td><td> <?php echo $PlaceofBirthCityandState; ?> </td></tr>
<tr><td>Email Address: </td><td> <?php echo $EmailAddress; ?> </td></tr>
<tr><td>How Long have you lived in the State of New Jersey: </td><td> <?php echo $HowLonghaveyoulivedintheStateofNewJersey; ?> </td></tr>
<tr><td>Are You a Citizen of the United States of America: </td><td> <?php echo $AreYouaCitizenoftheUnitedStatesofAmerica; ?> </td></tr>
<tr><td>Are you a Licensed Driver: </td><td> <?php echo $AreyouaLicensedDriver; ?> </td></tr>
<tr><td>Auto How Long: </td><td> <?php echo $AutoHowLong; ?> </td></tr>
<tr><td>Truck How Long: </td><td> <?php echo $TruckHowLong; ?> </td></tr>
<tr><td>Bus How Long: </td><td> <?php echo $BusHowLong; ?> </td></tr>
<tr><td>Any accidents in the Last 3 years: </td><td> <?php echo $AnyaccidentsintheLast3years; ?> </td></tr>
<tr><td>Have you ever had your License Suspended: </td><td> <?php echo $HaveyoueverhadyourLicenseSuspended; ?> </td></tr>
<tr><td>Drivers License Number: </td><td> <?php echo $DriversLicenseNumber; ?> </td></tr>
<tr><td>Have You Ever Been Convicted of a Crime: </td><td> <?php echo $HaveYouEverBeenConvictedofaCrime; ?> </td></tr>
<tr><td>Will you permit a Police Department Record Check: </td><td> <?php echo $WillyoupermitaPoliceDepartmentRecordCheck; ?> </td></tr>
<tr><td>Signature: </td><td> <?php echo $Signature; ?> </td></tr>
</table>
<!-- Do not change anything below this line -->

<?php
}
?>