Hi,
I bought a flash template and am trying to make the contact us form work.
I had to make a contact.php script and i thought i did everything correctly but its sending an email with no body and the sender is "unknown". The contact form has fields:
Name (t1) , Email (t2) , Phone Number (t3) and Message (t4).
Here is my script...
<?php
$t1 = $_GET[''];
$t2 = $_GET[''];
$t3 = $_GET[''];
$t4 = $_GET[''];
$recipient_email = "myemail@domain.com";
$subject = "from " . $t2;
$headers = "From: " . $t1 . " <" . $t2 . ">\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1';
$content = "<html><head><title>Contact Letter</title></head><body><br>";
$content .= "<b>" . $t1 . "</b><br>";
$content .= "<b>" . $t3 . "</b><br>";
$content .= "<b>" . $t2 . "</b><br><hr><br>";
$content .= $t4;
$content .= "<br></body></html>";
mail($recipient_email,$subject,$content,$headers);
?>
<html>
<bodybgcolor="#282E2C">
<div align="center" style="margin-top:60px;color:#0000CC;font-size:11px;font-family:tahoma;font-weight:bold">
Your message was sent. Thank You.
</div>
</body>
</html>
<script>resizeTo(300, 300)</script>