I just need some simple validation for a text input field. The code that I am trying to get to work is:
on (release) {
if(name == “foo”){
form.loadVariables("email.php", "POST");
getURL("http://www.cnn.com", "_self");
} else {
getURL("http://www.msn.com", "_self");
}
}
The code is on the submit button, however no matter what I input it never hits the else statement. What am I missing? Thanks for any help.