|
-
Submit to an email address [F8]
This is the code I have on my submit button for a email address to be sent for a newsletter subscription to a site the email bit is working but the messages are not poping up in the other field I have vard as EmailStatus i.e "Not valid E-mail address" & "e-mail recorded";
on (release)
{
if (newsletter.length < 7 || newsletter.indexOf("@" == -1 || newsletter.indexOf(".") == -1)
{
EmailStatus = "Not valid E-mail address";
} else
{
loadVariablesNum ("index.php", "0", "POST");
newsletter = "";
EmailStatus = "e-mail recorded";
}
}
any Ideas where im going wrong????
Nuub
Last edited by jonnyOreardon; 05-02-2007 at 03:03 PM.
-
on (release)
{
if (newsletter.length < 7 || newsletter.indexOf("@" == -1 || newsletter.indexOf(".") == -1)
{
_root.EmailStatus = "Not valid E-mail address";
} else
{
loadVariablesNum ("index.php", "0", "POST");
newsletter = "";
_root.EmailStatus = "e-mail recorded";
}
}
try using _root.EmailStatus
IMS
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
|