darreng
05-07-2008, 10:03 PM
I have tried to correct the php script and I cannot get it to work. Now I dont even know where the form information is being sent. Can someone look at the script and tell me what needs to be changed?
Thank you
Darren G
<?php
$realname = $_REQUEST['realname'];
$email = $_REQUEST['email'];
$message = $_REQUEST['comment'];
$recipient_email = "info@onewordnow.com";
$subject ="Contact Form";
$headers ="From: \"$realname\" <$email>;\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1\n';
$content = "<html><head><title>Contact letter</title></head><body><br>";
$content .= "RealName: <b>" . $realname . "</b><br>";
$content .= "E-mail: <b>" . $email . "</b><br><hr><br>";
$content .= $comment;
$content .= "<br></body></html>";
mail($recipient_email,$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>
Thank you
Darren G
<?php
$realname = $_REQUEST['realname'];
$email = $_REQUEST['email'];
$message = $_REQUEST['comment'];
$recipient_email = "info@onewordnow.com";
$subject ="Contact Form";
$headers ="From: \"$realname\" <$email>;\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1\n';
$content = "<html><head><title>Contact letter</title></head><body><br>";
$content .= "RealName: <b>" . $realname . "</b><br>";
$content .= "E-mail: <b>" . $email . "</b><br><hr><br>";
$content .= $comment;
$content .= "<br></body></html>";
mail($recipient_email,$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>