Hello,
I am not getting the logic right here...
I want to send to a php file the results of clicking some buttons but
only when an email address has been added, so
function checkBeforeSend (){
if (not all questions answered) {
alert("complete all questions");
} else if (no email added) {
alert ("add email address");
} else {
send();
}
}
something wrong here - ideas please!
Cheers
Geoff
I am not getting the logic right here...
I want to send to a php file the results of clicking some buttons but
only when an email address has been added, so
function checkBeforeSend (){
if (not all questions answered) {
alert("complete all questions");
} else if (no email added) {
alert ("add email address");
} else {
send();
}
}
something wrong here - ideas please!
Cheers
Geoff
Comment