|
Hello I have attached a contact form to my site. When I fill in all the info (name/company/email/message) and send the form I check my email to make sure it all went through ok it always fails to include the name. Why is this? This is the script I'm using, is there something wrong? Any help would be greatly appreciated. Thank you!!!
<?php
$your_name = $_GET['Your Name'];
$your_company = $_GET['company'];
$your_email = $_GET['email'];
$your_message = $_GET['message'];
$recipient_email = "lisa76497@aol.com";
$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 .= "Company: <b>" . $your_company . "</b><br>";
$content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>";
$content .= $your_message;
$content .= "<br></body></html>";
mail($recipient_email,$subject,$content,$headers);
?>
<html>
<body bgcolor="#FFFFFF">
<div align="center" style="margin-top:60px;color:#0000ff;font-size:11px;font-family:Tahoma;font-weight:bold">
Your message was sent. Thank you.
</div>
</body>
</html>
<script>resizeTo(300, 300)</script>
|