999000333
Programmer
- Nov 20, 2006
- 39
HI
I have a flash templates..that uses php as well
now I have a problem with my contact page as follows:
the user enter his name, email and message into flash input whose Var are: your_name, your_email and message.
then the user shoul press the send button and the actionscript code for the send button is:
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.message = "";
}
But when I actually press the send button a window pop up with the HTTP 404 error.
Here is also the contact page:
<?
$subject="from".$_GET['your_name'];
$headers= "From:".$_GET['your_email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail($_GET['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$_GET['message']."
</body>
</html>" , $headers);
echo ("your message was sent!");
?>
<script>
resizeTo(300, 300)
//window.close()
</script>
Can anyone help me to figure out why these codes do not work?....
Thank you
Paola
I have a flash templates..that uses php as well
now I have a problem with my contact page as follows:
the user enter his name, email and message into flash input whose Var are: your_name, your_email and message.
then the user shoul press the send button and the actionscript code for the send button is:
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.message = "";
}
But when I actually press the send button a window pop up with the HTTP 404 error.
Here is also the contact page:
<?
$subject="from".$_GET['your_name'];
$headers= "From:".$_GET['your_email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail($_GET['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$_GET['message']."
</body>
</html>" , $headers);
echo ("your message was sent!");
?>
<script>
resizeTo(300, 300)
//window.close()
</script>
Can anyone help me to figure out why these codes do not work?....
Thank you
Paola