Forum Moderators: mack

Message Too Old, No Replies

405 error with Submit button (POST method?)

         

charontas

5:30 pm on Aug 22, 2003 (gmt 0)



Hi people

Newbie to web development here. The author of our site is currently not around and I was tasked to solve this; I keep getting this 405 error(Method Not Allowed The requested method POST is not allowed for the URL /about.htm." while trying to make a form for visitors to submit their comments. Would any kind souls help see what could be wrong with the code below?

<form method="post" action="">
<div align="left"><font face="Arial" size="2"><b>Name:</b></font><br>
<input type="text" name="name" size="25">
</div>
<p align="left"><font face="Arial" size="2"><b>E-mail
Address:</b></font><br>
<input type="text" name="email" size="25">
</p>
<p align="left"> <font face="Arial" size="2"><b>Comments:</b></font><br>
<textarea name="comments" wrap="VIRTUAL" rows="10" cols="35"></textarea>
</p>
<p align="left">
<input type="submit" name="Submit" value="Send">
<input type="reset" name="Submit2" value="Reset">
</p>
</form>

jatar_k

5:36 pm on Aug 22, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld charontas,

<form method="post" action="">

there doesn't seem to be an action set for the form. That may do it but I am not sure. You should at least set the action to the actual page or script that will be doing the processing for the form for a start.