hi, i'm (obviously) just getting started with PHP, and thsi is my first post here..
i used a script called Perfect which sends forms via email and such. i haven't had a problem with it, until just now.
i'm getting this error: Address is not a valid IPv4 or IPv6 address in /home/dom/ticklethegoat.com/data/www/iframes/subIframes/fictionForm.php on line 24.
i have bolded the line. i haven't gotten this message before. the script does send out the email fine, but instead of going to the thank you page, it gives that email.
do i just need to use a different variable with the "gethostbyaddr" or something completely different?
any help is very much appreciated, thanks.
<?
// Configuration Settings
$SendFrom = "Password Request <design@freethinkersmovement.com>";
$SendTo = "design@freethinkersmovement.com";
$SubjectLine = "Password Request";
$ThanksURL = "thankyou.html"; //confirmation page
$Divider = "~~~~~~~~~~";
// Build Message Body from Web Form Input
$MsgBody = gethostbyaddr($REMOTE_ADDR) . "\n$Divider\n";
foreach ($_POST as $Field=>$Value)
$MsgBody .= "$Field: $Value\n";
$MsgBody .= $Divider . "\n" . $HTTP_USER_AGENT . "\n";
$MsgBody = htmlspecialchars($MsgBody); //make content safe
// Send E-Mail and Direct Browser to Confirmation Page
mail($SendTo, $SubjectLine, $MsgBody, "From: " . $SendFrom);
header("Location: $ThanksURL");
exit;
?>