I'm having a problem with my flash based contact form that uses PHP.The contact form loads in fine, it allows me to type my name, email, phone and message and then send.
It even responds saying that the function worked.The email sends but when I open it up in my inbox none of the information is there. My labels are there from the PHP file but, none of the information I entered into the form shows up. The same code works fine on another host. Could it be the PHP Version ???
The one that does not work is 4.0.6.
The one that works is 5.1.4
Here are the codes, which I've used:
Flash -----
send button action script:
on(release) {
parent.getURL("contact.php","blank","GET");
parent.inp1="";
parent.inp2="";
parent.inp3="";
parent.inp4="";
}
PHP Code:
<?php
$your_name = $_GET['inp1'];
$your_email = $_GET['inp2'];
$your_phone = $_GET['inp3'];
$your_message = $_GET['inp4'];
$recipient .= "xxx@xxxxx.com";
$subject .= "Inquiry from Web Page";
$headers .= "From:" . $your_name . " <" . $your_email . ">\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1';
$content = "<html><head><title>Contact letter</title></head><body><br>";
$content .= "Name: <b>" . $your_name . "</b><br>";
$content .= "E-mail: <b>" . $your_email . "</b><br>";
$content .= "Phone: <b>" . $your_phone . "</b><br><hr><br>";
$content .= $your_message;
$content .= "<br></body></html>";
mail($recipient,$subject,$content,$headers);
?>
<html>
<body bgcolor="#282E2C">
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">
Your message was sent. Thank you.
</div>
</body>
</html>
<script>resizeTo(300, 300)</script>
If any one has any suggestion what to check in order to make this form work, please let me know. This is for my own website.