View Full Version : POST Method Not Allowed???
watts
02-11-2006, 12:01 PM
I am attempting to add PayPal shopping cart code to by website. I have pasted code that adds a "add to cart' button and code that adds a "checkout". the checkout works, but when I press the 'add to cart button' I get the following message:
The test web site is at wattswings.com/test
Method Not Allowed
The requested method POST is not allowed for the URL /test/index.html.
Apache/1.3.34 Server at www.wattswings.com Port 80
Paypal claims I have the correct code. Do I need to set something up in my web site to allow this post method??
Thanks,
lazynitwit
02-11-2006, 12:09 PM
The problem is that you have two <form> tags in your code, which is causing the paypal link to go to the wrong place.
<form id="form1" name="form1" method="post" action="">
<label>buyit
<input type="submit" name="Submit" value="Submit" />
</label>
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
...
</form>
</form>
(code trimmed for sample)
You need to remove the first form tag, or close it before the paypal form.
watts
02-11-2006, 12:27 PM
Far out, it is working. Thanks,
I have been playing with agora cart, but they don't have freebie hooks into paypal, so I am attempting to use the paypal cart. It is not as elegant or integrated with my web site, but it looks like it will work OK.
Thanks again
scottcrew
02-21-2006, 05:33 PM
Just remember that you cannot "nest' form tags. One form tag MUST be closed before opening a new form.
HTH!
mhebby
02-26-2006, 12:33 PM
I'm receiving the same error (see below)... but because I'm trying to get a form saved to a database. Any advice?
-Heather
Method Not Allowed
The requested method POST is not allowed for the URL /mailinglist.asp.
--------------------------------------------------------------------------------
Apache/1.3.34 Server at www.themaplebarn.com Port 80
thenewguy
09-05-2006, 08:41 AM
http://www.scroogle.org/scget.html
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.