Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) Where do i put in my email address in a Flash PHP email button

  • Where do i put in my email address in a Flash PHP email button

    Posted by Chris Huggett on June 4, 2005 at 12:08 am

    Hey guys

    I have downloaded a Flash MX 2000 template website and am in the process of doing it all up, and i have a contacts page, which the viewer enters in text etc and sends it to me.

    From the code that i have, i do not know where my address needs to go for the viewer to send me an email.

    Does it go in the send button action script from Flash below:

    on (rollOver) {
    this.gotoAndPlay(“s1”);
    }
    on (releaseOutside, rollOut) {
    this.gotoAndPlay(“s2”);
    }
    on (release) {
    url_var = “server_option=”+_root.server_option+”&recipient=”+_root.recipient+”&your_name=”+_parent.your_name+”&your_email=”+_parent.your_email+”&message=”+_parent.message;
    //getURL(“contact.”+_root.server_option+”?”+url_var, “_blank”, “GET”);
    _parent.your_name = “”;
    _parent.your_email = “”;
    _parent.your_lastname = “”;
    _parent.message = “”;
    }

    or in the PHP script below:



    Contact letter

    “.$_GET[‘message’].”

    ” , $headers);
    echo (“Your message was successfully sent!”);
    ?>

    Thanks guys

    Chris

    Curtis Thompson replied 20 years, 11 months ago 2 Members · 3 Replies
  • 3 Replies
  • Curtis Thompson

    June 4, 2005 at 5:59 pm

    hello…

    your name, email, etc. would be set in the flash page where all the your_* params are…

    sitruc

  • Chris Huggett

    June 4, 2005 at 10:22 pm

    THanks Curtis

    I dont think i fully understand though.

    So in flash, there is already set up, input text fields for the viewers name and email address which have been given variable names. In the SEND button is the script (which is in my first email).

    I can not see in this script, where my email address goes. Could you point it out to me.

    SInce i wrote my first post, i also noticed in my html page which holds all the text for my flash site, that it too has some PHP code, with text that calls the recipient (&recipient=youremail@youremail.com)

    Would this be the place to put my email address?

    Thanks for the help

    Chris

  • Curtis Thompson

    June 4, 2005 at 10:27 pm

    hello…

    [Chris Huggett] “SInce i wrote my first post, i also noticed in my html page which holds all the text for my flash site, that it too has some PHP code, with text that calls the recipient (&recipient=youremail@youremail.com)

    Would this be the place to put my email address?”

    could be – it’s hard for me to say without seeing everything, but this is a rather simple one to test, ya? go through all the code and just try putting your email where you think it might need to go – then go try the script…if you get the email, then it’s all good. there’s no harm in playing around a bit…

    sitruc

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy