A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Submit to an email address [F8]

  1. #1
    Jonny
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    33

    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(&quot;@&quot == -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.

  2. #2
    Senior Member
    Join Date
    Nov 2005
    Location
    dante's inferno
    Posts
    904
    on (release)
    {
    if (newsletter.length < 7 || newsletter.indexOf(&quot;@&quot == -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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center