View Full Version : Using Paypal "Buy Now" button on website
RickJ
Jun 6, 2006, 05:30 PM
Made a simple "Buy Now" button with Paypal's Merchant Tools and stuck it here:
http://tripswithkidz.com/advertisenow.html
Why does clicking the button result in
Method Not Allowed
The requested method POST is not allowed for the URL /advertisenow.html.
Checking out that button code in Dreamweaver gives me no clues. Got to be something simple, huh?
Any clues anyone?
... LT?
... Beuller?
AMysticWeb
Jun 6, 2006, 08:15 PM
Looks like you haven't used the full code for the button. It should include your email address used by Pay Pal.
Go back to creating the buttons again at Pay Pal and follow the instructions to the letter.
LTheobald
Jun 7, 2006, 01:34 AM
I think the problem is this line Rick:
<form name="form1" method="post" action="">
I believe having the Paypal form(s) within another form with no action is causing the problem. You'll need to give that form an action or remove it possibly. I'll take a proper look later but I think I better get some work done first :P
RickJ
Jun 7, 2006, 02:58 AM
AMystic: The code is copied verbatum from Paypal. Technically it should work on a blank page.
... so I think that LT's mention of it's being within my own form that has no action assigned to it may be the issue.
... checking...
Yep, that must be it! Here, the button works outside of my form:
http://tripswithkidz.com/advertisenow.html
AMysticWeb
Jun 7, 2006, 11:08 PM
LT,
Nice catch. I didn't look that close.
Sorry Rick.
RickJ
Jun 8, 2006, 03:26 AM
Indeed, Amystic. The both of you have skills far superior to mine; and you two compliment each other nicely.
Wonderful job on frontpageforms.com, Amystic!
AMysticWeb
Jun 8, 2006, 09:26 PM
Thanks Rick. If I ever get around to sending out holiday cards, you're on the list.
Just remember we were all total newbies at one time. Me repeatedly.
RickJ
Jun 9, 2006, 04:34 AM
Heck, I'm still plugging away at laying out content in tables.
For the most part, it serves me well. And Dreamweaver sure makes clicking my way to a website easy :p
My list of "stuff I will learn one day" is huge. CSS is probably #1 on it.
LTheobald
Jun 9, 2006, 06:40 AM
Don't forget me. There's still a mountain of stuff I need to learn. Answering eachother's questions is a good way to get there though :)
RickJ
Jun 9, 2006, 06:46 AM
You are admirably humble, LT - but I say your moniker of Web Design Expert is certainly accurate! ;)
AMysticWeb
Jun 10, 2006, 12:35 AM
Now I am pretty good with tables, but everyone is talking about going tableless with CSS which I don't know Jack about.
I learn something everyday, so in a year that should be 365 new things. I am pretty sure I will overload.
LTheobald
Jun 11, 2006, 11:23 PM
As soon as I get the time, I'll write a little howto about tableless design. It is a lot more flexible but it's a little trickier to use.