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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form method=post 1

Status
Not open for further replies.

newbie345

Programmer
Apr 5, 2003
3
0
0
US
I created a website and it works fine when I run it on my PC. But when I move it to the hosting server I get the following message:

Method Not Allowed
The requested method POST is not allowed for the URL /madison.html.


----------------------------

Apache/1.3.27 Server at Port 80

Here is the code:
<FORM method=&quot;post&quot; action=&quot;madison.html&quot;><SELECT name=&quot;form1&quot; size=&quot;1&quot;>
<OPTION value=&quot;County&quot; selected>Madison</OPTION>
<OPTION value=&quot;County&quot;>Delaware</OPTION>
</SELECT><INPUT type=&quot;submit&quot; name=&quot;Search&quot; value=&quot;Search&quot;></FORM>

Just confused?
Thanks,
Bob
 
Hi mate,

Its invalid to submit by POST to a html file.

If you need to submit a form to this html page then you need to use the GET method, POST is for server-side scripts.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top