I want to create an email form through PHP. I have uploaded the feedback.html file, as well as the PHP processing file (sendmail.php) to my host. However, I keep getting an error once I try to send the form on my site.
Here is a link to my site: http://www.premierentals.com/Misc/feedback.html
The error message is below:
Method Not Allowed
The requested method POST is not allowed for the URL /Misc/feedback.html.
Apache/1.3.29 Server at premierentals.com Port 80
Also, I have pasted the code from my 2 pages below. What am I doing wrong? Any help would be greatly appreciated.
feedback.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form method="post" action="feedback.html">
Email:
<input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>
sendmail.php
<?
$email = $REQUEST['email'] ;
$message = $REQUEST['message'] ;
mail( "name@mydomain.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.premierentals.com/thankyou.html" );
?>
Thank you.
Colin
Alive After 5 Design