Ive managed to build a proper contact form with the help of a few members here at kirupaforum
I was wondering if anyone could help me with a problem im having.
I have 3 input fields on my contact form, name, email, and message (var’s). On my “send” button, the actionscript checks to see that if any info in any of those fields is missing, it does not send the email.
I have made a little red text box “Invalid/Missing info” and given it the var “error”. What I want to do is have the actionscript check if there is something not filled out on the form, it displays this little error message. Also, I want it to check if there is an “@ and .” symbols typed in the email part of the form, and if there isnt, to display the error message.
Can anyone help me out with this? Ive attached the fla file below… and it’s just about finished, ive even made the error var and everything :beam:
Thanks,
Domo
Hmm… seems like hte fla is too big to attach… instead you can grab it here: 66.118.183.203/contactform2.fla
Thanks… but it doesnt really work…at first, if for example you only fill out 1 field and sit send… the error message appears. If you clear that and type in the other input fields making the first one blank… it sends
And if you dont put a @ or . in the email part… it still sends
You’re welcome
You can make a more precise validation though… I just checked if there were only 1 “@” symbol and if the “.” comes at least 2 positions after the “@”.