-
Desperately seeking help!
hello!
i need your help! i have a form in my document which should check if the email-field has content, contains "@" and ".". but i just can't figure out how i check the "@" and the"."!!! please, i have to go online with this in a few days! I would be so greatful!!! THANK YOU!!!!
sabine
code:
on (press) {
validemail = "0";
validnombre = "0";
if (Number(length(email))>=1) {
validemail = "10";
} else {
message = "Escribe tu email";
}
if (Number(length(nombre))>=1) {
validnombre = "10";
} else {
message = "Escribe tu nombre";
}
}
on (release) {
if (Number(validnombre) == 10 and Number(validemail) == 10) {
getURL("http://www.xxx/gracias.php","","POST");
gotoAndPlay("cerrar");
}
}
-
Really this is me.....
Check my signature for the mailform movie i submited here. It has form checking and checks for the @ in an email address....
-
Space Monkey
check for valid format of an email adress:
(does not check if that email exists!!!)
code:
//check gültige mail
mailcheck = adress.split("@");//split at the @ to see if theres somth. before and after the @
if (mailcheck.length == 2 && mailcheck[1].length>4) {
check2 = mailcheck[1].toString();//split second part to see if there are enough chars for domain name and domain
tld = check2.split(".");
if (tld[1].length>=2) {
gotoAndPlay("view_score");
} else {
getURL("Javascript:alert('Enter valid mailto adress');");
adress = "";
delete (mailcheck);
delete (check2);
delete (tld);
}
:::i am jacks complete lack of surprise:::
-
Thanks for your help. Both ways worked perfectly!!!
;D
sabine
-
Re: Desperately seeking help!
Thanks for your help. Both ways worked perfectly! honestly, it was driving me crazy ;D
sabine
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|