----- Original Message -----
From: "a_wil72"
Wade,
Thanks for the prompt response. This is the php script that I am
using:
<?php
$sendTo = "[EMAIL PROTECTED]";
$subject = "Info from Game Website.";
$ip = $_SERVER['REMOTE_ADDR'];
$name = $_GET['Name'];
$email = $_GET['Email'];
$comments = $_GET['Comments'];
$from = "Reply-To: " . $name . "<" . $email . ">/n";
$headers = 'Content-type: text/html; charset=iso-8859-1';
$comments ="\r\n\n\n" . "Sender's ip address is " . nl2br($ip);
mail($sendTo, $subject, $comments, $from);
?>
When a visitor hits the send button on my contact form, they recieve
the "your message was sent, thank you" screen, but the only
information I recieve in my inbox is the senders ip address. No name
or email address or the body of the message. Hope this helps
Ashley Wilson
-----------------------------
Tested script -
<?php
$to = "[EMAIL PROTECTED]";
$subject = "Info from Game Website.";
$message = $_GET['Comments'];
// don't forget to stripslashes on older versions of php
$message = str_replace("\r\n", "\r", $message);
$message = str_replace("\r", "\n", $message);
$message = str_replace("\n.", "\n..", $message);
// for windows servers
$message .= "\n\nSender's ip address is ";
$message .= $_SERVER['REMOTE_ADDR'];
$message .= "\n";
$message = nl2br($message);
$email = $_GET['Email'];
$email_allow = "abcdefghijklmnopqrstuvwxyz";
$email_allow .= strtoupper($email_allow);
$email_allow .= "._-@";
$email = substr($email, 0, strspn($email, $email_allow));
$name = $_GET['Name'];
$name = str_replace("\r", "", $name);
$name = str_replace("\n", "", $name);
$name = stripslashes($name);
$from = "From: " . $name . "<" . $email . ">";
$reply = "Reply-To: " . $name . "<" . $email . ">";
$headers = $from . "\r\n";
$headers .= $reply . "\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
// last "\r\n" above may not be nessesary
mail($to, $subject, $message, $headers);
?>