QuizToon
03-23-2006, 09:30 PM
:( :confused: I am wanting to learn php and have done a very small piece of script and html which I have read in a book.
Problem is that it goes through the process and I get to see the thankyou page, but I dont receive any email.
Please can you tell what is wrong so that I can understand what i did wrong.
My server is able to use php.
Thanks in advance :)
html page code >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Email</title>
</head>
<body>
<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>
php page code >
<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "graham.peach@ntlworld.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: thank_you.html" );
?>
Problem is that it goes through the process and I get to see the thankyou page, but I dont receive any email.
Please can you tell what is wrong so that I can understand what i did wrong.
My server is able to use php.
Thanks in advance :)
html page code >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Email</title>
</head>
<body>
<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>
php page code >
<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "graham.peach@ntlworld.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: thank_you.html" );
?>