-
Where do i put in my email address in a Flash PHP email button
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