really simple question: how do i make sure a user has entered a valid email address. i basically just want to make sure the input field contains an “@” sign. this is the code im using but its not working…
[AS]
submit.onRelease = function() {
if (email.indexOf("@") == -1) {
formStatus.text = “please enter a valid email address”;
} else {
formStatus.text = “”;
trace(“email is valid”);
}
};
[/AS]
ive been searching the forums for about 45 minutes with no luck. i know this is totallly easy but i guess im just missing something…
any clues?
thanks!