Get HTTP 405 - Resource not allowed then must refresh page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gringolerdo
Forum Newbie
Posts: 2
Joined: Thu Apr 08, 2004 1:58 pm
Location: Costa Rica

Get HTTP 405 - Resource not allowed then must refresh page

Post by gringolerdo »

I have a form on a page with a .php extension (http://www.linkpool.net/linkarrange/linkorder.php) that has as the "Action" a page with an .htm extension (http://www.linkpool.net/linkarrange/orderconfirm.htm) running on unix/apache. The problem is that everytime I click the "Submit" button of the form, this page comes up "HTTP 405 - Resource not allowed
Internet Explorer ". I then have to click the "Refresh" button of the browser in order to see the correct landing page. I tried chmoding the landing page to allow all permissions but this did not help. Can anyone tell me why this happens? :?:
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Post by TheBentinel.com »

That error means you have tried to do something to a file type that doesn't support it. The server is saying, "You can't 'POST' to an .htm file". When you hit refresh, you're sending a GET, though not with any variables.

If you change the method in your form from POST to GET, it will probably work.
gringolerdo
Forum Newbie
Posts: 2
Joined: Thu Apr 08, 2004 1:58 pm
Location: Costa Rica

Sorry for being clueless!

Post by gringolerdo »

:?
Sorry for the bother. The Error was a result of a stupid clueless lack of basic understanding which I have remedied. I'll never waste your generous time again!??
Thanks anyway for the response
Post Reply