Hi all, I have searched through the forum trying to find the solution to this problem, but to no avail....
Ok.. When I run my Email form, i get the error Undefined variable line 13. However, if i turn global variables ON, everything works fine. Ive used ISSET, which bypasses the error and jumps to "Sorry but you can't access this page directly" .So can anyone please shine some info on how I can solve this... ta in advance...
<?
if ($process) {
@extract($_POST);
$name = stripslashes($name);
$email = stripslashes($email);
$subject = "A Comment sent from: ".stripslashes($website);
$message = stripslashes($message);
mail("myemail@blah",$subject,$message,
"From: $name <$email>\r\n" .
"Reply-To: $name <$email>\r\n" .
"X-Mailer: PHP/" . phpversion());
$message = str_replace("\n","<br>",$message);
echo "The following message was sent:<br><br>";
echo "<b>From:</b> $name <".$email."><br>";
echo "<b>Subject</b> $subject<br>";
echo "<br><b>Message:</b><br>$message";
echo "<br><br>";
echo "<b>Thank You For Sending Me A Comment</b>";
} else {
echo "Sorry but you can't access this page directly";
}
?>