I am having some difficulties getting this to work. I would greatly appreciated some help if anyone could point me what seems to be the problem.
The php code:
<?
$subject="from".$_GET['your_name'];
$headers= "From:".$_GET['your_email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail($_GET['recipient email'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$_GET['message']."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300)
//window.close()
</script>
the flash code submit button:
on (rollOver) {
gotoAndPlay("S1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("S2");
}
on (release) {
url_var = "server_option="+_root.server_option+"&recipient="+_root.recipient+"&your_name="+_parent.your_name+"&your_email="+_parent.your_email+"&comments="+_parent.comments;
getURL("contact."+_root.server_option+"?"+url_var, "_blank", "GET");
_parent.your_name = "";
_parent.your_email = "";
_parent.comments = "";
}
I've verified that the web hosting support php. When submitting, i get page cannot be displayed
Help would be greatly appreciated. Thanks again.
The php code:
<?
$subject="from".$_GET['your_name'];
$headers= "From:".$_GET['your_email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail($_GET['recipient email'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$_GET['message']."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
?>
<script>
resizeTo(300, 300)
//window.close()
</script>
the flash code submit button:
on (rollOver) {
gotoAndPlay("S1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("S2");
}
on (release) {
url_var = "server_option="+_root.server_option+"&recipient="+_root.recipient+"&your_name="+_parent.your_name+"&your_email="+_parent.your_email+"&comments="+_parent.comments;
getURL("contact."+_root.server_option+"?"+url_var, "_blank", "GET");
_parent.your_name = "";
_parent.your_email = "";
_parent.comments = "";
}
I've verified that the web hosting support php. When submitting, i get page cannot be displayed
Help would be greatly appreciated. Thanks again.