no double click on submit
Thanks Jimmy but none of that worked??
Instead I put this in the form action:
<form action="EATING_PLACES_Insert.php" method="post" name="WADAInsertForm" id="WADAInsertForm" onsubmit="if (formCheck(this)) { this.elements['Insert'].disabled=true; } else { return false; }">
but this doesn't work either!!???
Does anyone have any ideas please?
Plus how do I string together onsubmit events, it is ok like this:
<form action="LISTINGS_Insert.php" method="post" name="WADAInsertForm" id="WADAInsertForm" onsubmit="if (formCheck(this)) { this.elements['Insert'].disabled=true; } else { return false; }
&& (using the && to link onsubmit)
WAValidateEL(document.getElementById('WADAInsertForm').VENUE_NAME,document.getElementById('WADAInsertForm').VENUE_NAME.value,'Your Venue Name has an invalid number of characters in entry. The maximum allows is 250 characters.',1,250,'',document.getElementById('WADAInsertForm').VENUE_NAME,0,true);WAValidateEM(document.getElementById('WADAInsertForm').GENERAL_EMAIL,document.getElementById('WADAInsertForm').GENERAL_EMAIL.value,'The general email input is not valid. Please reenter using a real email address.',document.getElementById('WADAInsertForm').GENERAL_EMAIL,0,false);WAValidateEM(document.getElementById('WADAInsertForm').GM_EMAIL,document.getElementById('WADAInsertForm').GM_EMAIL.value,'The general manager email input is not valid. Please reenter using a real email address.',document.getElementById('WADAInsertForm').GM_EMAIL,0,false);WAValidateEM(document.getElementById('WADAInsertForm').DIR_SALES_EMAIL,document.getElementById('WADAInsertForm').DIR_SALES_EMAIL.value,'The Sales Director email input is not valid. Please reenter using a real email address.',document.getElementById('WADAInsertForm').DIR_SALES_EMAIL,0,false);WAValidateEM(document.getElementById('WADAInsertForm').CB_MGR_EMAIL,document.getElementById('WADAInsertForm').CB_MGR_EMAIL.value,'The C&B manager email input is not valid. Please reenter using a real email address.',document.getElementById('WADAInsertForm').CB_MGR_EMAIL,0,false);WAValidateEM(document.getElementById('WADAInsertForm').CB_CONTACT_EMAIL,document.getElementById('WADAInsertForm').CB_CONTACT_EMAIL.value,'The C&B contact email input is not valid. Please reenter using a real email address.',document.getElementById('WADAInsertForm').CB_CONTACT_EMAIL,0,false);WAValidateEL(document.getElementById('WADAInsertForm').NEAREST_LANDMARK,document.getElementById('WADAInsertForm').NEAREST_LANDMARK.value,'- Invalid number of characters in entry Nearest Landmark (maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').NEAREST_LANDMARK,0,false);WAValidateEL(document.getElementById('WADAInsertForm').SEARCH_PREF,document.getElementById('WADAInsertForm').SEARCH_PREF.value,'There is an invalid number of characters in entry search preference (maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').SEARCH_PREF,0,false);WAValidateEL(document.getElementById('WADAInsertForm').PARK_DESC,document.getElementById('WADAInsertForm').PARK_DESC.value,'There is an invalid number of characters in entry park description (maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').PARK_DESC,0,false);WAValidateDT(document.getElementById('WADAInsertForm').INSERT_DATE,'- You have an invalid insert date. The format has to be yyyy/mm/dd',true,/\b\d{4}\/(1[0-2]|0[1-9])\/([12]\d|3[0-1]|0[1-9])\b/,'yyyy/mm/dd','','',false,/.*/,'','','',document.getElementById('WADAInsertForm').INSERT_DATE,0,true);WAAlertErrors('The following errors were found','Correct invalid entries to continue please',true,document.getElementById('false'),false);WAValidateEL(document.getElementById('WADAInsertForm').LOCATION_DESC,document.getElementById('WADAInsertForm').LOCATION_DESC.value,'There is an invalid number of characters in entry location description (maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').LOCATION_DESC,0,false);WAValidateEL(document.getElementById('WADAInsertForm').GM_DESC,document.getElementById('WADAInsertForm').GM_DESC.value,'There is an invalid number of characters in entry GM Description(maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').GM_DESC,0,false);WAValidateNM(document.getElementById('WADAInsertForm').PARK_NMBR_SPACES,'The field with the number of parking spaces is invalid.',0,1000000000000,'','','',',.',document.getElementById('WADAInsertForm').PARK_NMBR_SPACES,0,false);WAValidateEL(document.getElementById('WADAInsertForm').CB_DESC,document.getElementById('WADAInsertForm').CB_DESC.value,'There is an invalid number of characters in entry CB description (maximum two thousand characters allowed)',0,2000,'',document.getElementById('WADAInsertForm').CB_DESC,0,false);return document.MM_returnValue">