Hey Everyone. I'd like to have a very simply "form" on my website and be able to have it submitted to my e-mail. So far, the php appears to be working in that the "thank you" page loads correctly. However, I have tested it and don't seem to be receiving any e-mails.
What is wrong with my code?
**************************************************************************
<html>
<head>
<title>Feedback Form Page</title>
</head>
<body>
<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="20" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>
**************************************************************************
And here is my .php :
**************************************************************************
<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "[email protected]", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.ofstorms.com/thankyou.html" );
?>
What is wrong with my code?
**************************************************************************
<html>
<head>
<title>Feedback Form Page</title>
</head>
<body>
<form method="post" action="sendmail.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="20" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>
**************************************************************************
And here is my .php :
**************************************************************************
<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "[email protected]", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.ofstorms.com/thankyou.html" );
?>