I am trying to make this code I got from a tutorial to work on MX, but having trouble... can anybody help? Just need the proper structure of if else if else and I will be on my way.
code:
on (release) {
if (!form-email.length || submit-email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
}
else if (!form-name.length) {
EmailStatus = "Please enter your name";
}
}
else if (!form-subject.length) {
EmailStatus = "Please enter a topic";
}
else if (!form-body.length) {
EmailStatus = "Please enter your comment";
}
else {
loadVariablesNum ("snowMailPHP.php", "0", "Post");
EmailStatus = "Delivering eMail...";
}
}
EDIT: Added [ as ] tags - see posting guidelines at the top of the forum. jbum





Reply With Quote