good day everyone!
I have a form validation script that does validate the fields but does not for to the "thank" frame after the validation.
any suggestions, thanks
I have a form validation script that does validate the fields but does not for to the "thank" frame after the validation.
any suggestions, thanks
Code:
on (press) {
if (!name.length) {
tellTarget ("n") {
gotoAndPlay(1);
}
} else if (!email.length) {
tellTarget ("e") {
gotoAndPlay(1);
}
} else if (!company.length) {
tellTarget ("c") {
gotoAndPlay(1);
}
} else if (!phone.length) {
tellTarget ("p") {
gotoAndPlay(1);
}
} else if (!comments.length) {
tellTarget ("m") {
gotoAndPlay(1);
}
} else {
loadVariablesNum("form.asp", 0, "POST");
gotoAndStop("thank");
}
}