FORUMS: list search recent posts

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

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Chris HuggettWhere do i put in my email address in a Flash PHP email button
by on Jun 4, 2005 at 12:08:00 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:


$subject="from".$_GET['your_name'];
$headers= "From:".$_GET['your_email']."n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail($_GET['recipient'], $subject, "


Contact letter





".$_GET['message']."

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



Thanks guys

Chris




Return to posts index

Curtis ThompsonRe: Where do i put in my email address in a Flash PHP email button
by on Jun 4, 2005 at 5:59:33 pm

hello...

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

sitruc


Return to posts index

Chris HuggettRe: Where do i put my email address in a Flash PHP email button
by on Jun 4, 2005 at 10:22:52 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


Return to posts index


Curtis ThompsonRe: Where do i put my email address in a Flash PHP email button
by on Jun 4, 2005 at 10:27:38 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




Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]