1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
function verifForm(){
if(document.formContact.cnom.value == "" || document.formContact.cprenom.value == "" || document.formContact.ccompany.value == "" || document.formContact.cmail.value == "" || document.formContact.csujet.value == "" || document.formContact.cmessage.value == "" || document.formContact.ccompany.value == "" || document.formContact.crub.value == "Choose the column of your message"){
alert('Please, fill all the fields marked with an * !');
return false;
}else{
var email=document.formContact.cmail.value
if ((email.indexOf('@',0)==-1) || (email.indexOf('.',0)==-1)) {
alert('Incorrect adress email !');
return false;
}else{
if(MD5(document.formContact.csaisiecle.value) == document.formContact.ccle.value){
alert('coucou');
return false;
}else{
alert('marche');
return false;
}
}
}
} |