Click to See Complete Forum and Search --> : Form Submission Wierdness
phpnovice
11-24-2005, 12:16 AM
In over six years' time, I've never seen this error. I'm POSTing a form to an HTML page and getting the following message:
HTTP Error 405 - The HTTP verb used to access this page is not allowed.
Internet Information Services (IIS)
I've tried all kinds of different possible remedies -- all to no avail. What is causing this?
Thanks.
ray326
11-24-2005, 12:24 AM
You can't POST to a static page (.htm, .html, .txt).
phpnovice
11-24-2005, 12:39 AM
Has this always been the case? Could this truly be the first time I've ever tried to POST to an HTML page? ;)
ray326
11-24-2005, 11:25 PM
Well you could dig through the RFC (ftp://ftp.rfc-editor.org/in-notes/rfc2616.pdf) and see but a post will transmit information that a static resource can't process.
phpnovice
11-25-2005, 01:15 PM
... a post will transmit information that a static resource can't process.
No doubt. I was just using a password FORM for navigation. The password is being validated via external JavaScript library (I know, insecure & unreliable -- not the point -- the client requested it). After validation, I was setting the FORM ACTION based on the result of the validation and letting the submission proceed. I wasn't actually sending any data that was needed at the destination. So, I've now changed to using JavaScript navigation and always cancelling the submission. Thanks.
thewebman
11-25-2005, 10:49 PM
why would your client want an insecure password script?
ray326
11-25-2005, 10:52 PM
You could also set the form method to GET.
phpnovice
11-26-2005, 02:39 PM
The only reason I didn't go with GET, is because I didn't want the input field and submit button values displayed in the browser address bar. As for why the insecure password system... It is for a kids game. The password being for getting to the next game level. A separate JS library is usually sufficient "security" for most kids -- and, if not, so what?
Webman... You shouldn't pass judgement upon others so indiscriminately.
thewebman
11-26-2005, 09:21 PM
Webman... You shouldn't pass judgement upon others so indiscriminately. you're right, I am sorry. let me edit some of that out...
ray326
11-26-2005, 10:23 PM
So the answer is to post only to active pages like PHP.