Here is my code... I have gone over and over it again and can't seem to find my mistake:
<InvalidTag language="JavaScript" type="text/javascript"> function validateFields() { if (document.form1.pupdate.value == "") { alert("Please Enter Your Pickup Date"); return false; } if (document.form1.fname.value == "") { alert("Please Enter Your First Name"); return false; } if (document.form1.lname.value == "") { alert("Please Enter Your Last Name"); return false; } if (document.form1.htelephone1.value == "") { alert("Please Enter Your Complete Telephone Number"); return false; } if (document.form1.htelephone2.value == "") { alert("Please Enter Your Complete Telephone Number"); return false; } if (document.form1.htelephone3.value == "") { alert("Please Enter Your Complete Telephone Number"); return false; } if (document.form1.zip1.value == "") { alert("Please Enter The Origin Zip Code"); return false; } if (document.form1.zip2.value == "") { alert("Please Enter The Destination Zip Code"); return false; } return true; } </script>
Thanks Wayne
This message was edited by awayne on 2-2-06 @ 5:50 PM
JavaScript is case sensitive so i would check the form fields and see if their names are exactly the same in your JavaScript calls. also, i assume your form name is called = form1 ?
finally, how do you call validateFields() ? Can you post your form code?
I just made a change to that form name from form1 to quote1 so it is not so confussing. Here is the form code, I didn't include the whole page, just the part that includes the parts I am trying to validate. Thanks for the help.