Connecting Tech Pros Worldwide Help | Site Map

contact page flash actionscript php

Newbie
 
Join Date: Nov 2006
Posts: 5
#1: Jan 12 '07
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
iam_clint's Avatar
Forum Leader
 
Join Date: Jul 2006
Location: Oklahoma
Posts: 1,076
#2: Jan 12 '07

re: contact page flash actionscript php


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.
Reply


Similar Flash / Actionscript bytes