By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,583 Members | 1,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,583 IT Pros & Developers. It's quick & easy.

contact page flash actionscript php

P: 5
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 should 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 code that has been called :


<?
$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
Jan 12 '07 #1
Share this Question
Share on Google+
1 Reply


iam_clint
Expert 100+
P: 1,208
your php code is sloppy and won't work, please refer yourself to the php forum for more help on this where a php expert can help you figure out whats wrong with your php.
Jan 12 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.