View Single Post
  #4 (permalink)  
Old October 15th, 2010, 02:00 PM
sdagger sdagger is offline
Authorized User
 
Join Date: Sep 2008
Location: , , .
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If it is possibly the javascript validation is not working then maybe this is why chrome does not like it. Here is the clientside validation I am using to check user entries prior to submission:

<script type="text/javascript">
function checkForm(theForm) {

if (theForm.elements['firstname'].value == '') {
alert('You must enter your First name.');
theForm.elements['firstname'].focus();
return false;
}
if (theForm.elements['surname'].value == '') {
alert('You must enter your Surname.');
theForm.elements['surname'].focus();
return false;
}
if (theForm.elements['contactnumber'].value == '') {
alert('You must enter your contact phone number.');
theForm.elements['contactnumber'].focus();
return false;
}
if (theForm.elements['email'].value == '') {
alert('You must enter an email address.');
theForm.elements['email'].focus();
return false;
}
if (theForm.elements['enquiry'].value == '') {
alert('You must enter your enquiry details.');
theForm.elements['enquiry'].focus();
return false;
}

document.contactform.submit();
}
</script>
Reply With Quote