Im new to php and can't figure out why Im getting the following error.
The requested method POST is not allowed for the URL /sendmail.php.
Here is what Im using
For my webpage
<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>
my php
<?php
$email = $REQUEST['email'] ;
$message = $REQUEST['message'] ;
mail( "yourname@example.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.example.com/thankyou.html" );
?>
I have my email address in there instead of "yourname@example.com". Im using earthlink as my web host and they should support this.
Any suggestions?