Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

http error 405 with php form submital

Status
Not open for further replies.

wiser3

Programmer
Joined
Jun 3, 2003
Messages
358
Location
CA
I have a form that gets processed by a php program. When the form is submitted i always get the following error:

<blockquote>HTTP Error 405
405 Method Not Allowed

The method specified in the Request Line is not allowed for the resource identified by the request. Please ensure that you have the proper MIME type set up for the resource you are requesting.

Please contact the server's administrator if this problem persists.</blockquote>

This form has worked fine on other servers. So i'm thinking it's a server related problem.

To make sure php was on the server i tested a php program that does some calculations and returns the results. This php test program worked fine.

Can anyone tell me more about the above error and how to fix it?

 
Please post the <form> tag with all attributes.
Otherwise there is not sufficient information for a meaningful answer.
 
< form name=&quot;catrequest&quot; onsubmit=&quot;return validateForm()&quot; action=&quot;catalogrequestform.html&quot; method=&quot;post&quot;>

The onsubmit activates a javascript function that makes sure required fields are filled in.
 
OK, i'm an idiot. As soon as i looked at my form attributes above i realized the action was set to the form page instead of the php page that processes it.

All fixed now, sorry to bother people on somthing i should have found a lot earlier.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top