Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6981287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:08:13+00:00 2026-05-27T18:08:13+00:00

I am trying to integrate PayPal buttons to a website. It was a really

  • 0

I am trying to integrate PayPal buttons to a website. It was a really tough job making such a big number of buttons but I some how did it, but now I see that some of them work while some of them do not(and go to PayPal's homepage.) I am unable to determine what would have gone wrong which has caused this error.
The code was very big to fit in here so I am sharing to forms, the first one works while the second does not.

 <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="xxxxx">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Sumission Order 1- 3 articles ">
<input type="hidden" name="amount" value="xxx">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="tax_rate" value="0.000">
<input type="hidden" name="shipping" value="0.00">
<input type="hidden" name="add" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></p>
</form> </p>
<p>Sumission Order 2- <strong>5 articles</strong></p>
<p>
  <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <p>
      <input type="hidden" name="cmd3" value="_cart">
      <input type="hidden" name="business2" value="xxxxx">
      <input type="hidden" name="lc2" value="US">
      <input type="hidden" name="item_name2" value="Sumission Order 2- 5 articles">
      <input type="hidden" name="amount2" value="xxxx">
      <input type="hidden" name="currency_code2" value="USD">
      <input type="hidden" name="button_subtype2" value="products">
      <input type="hidden" name="no_note2" value="0">
      <input type="hidden" name="tax_rate2" value="0.000">
      <input type="hidden" name="shipping2" value="0.00">
      <input type="hidden" name="add2" value="1">
      <input type="hidden" name="bn2" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest">
      <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit2" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></p>
</form>

Please help me out. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:08:14+00:00Added an answer on May 27, 2026 at 6:08 pm

    You have changed the names of the inputfields in the second form. These are the variables that are send to PayPal. This means you are now posting other variables; PayPal does not understand cmd2 for example, but it understands cmd. So rename the inputfields inside the second form to cmd, business, lc, item_name .. etc and it should work.

    BTW It is not illegal to have duplicate names in html-tags, only duplicate ID’s are not allowed.

    Success!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to integrate paypal in a php website but I'm not sure how
I am trying to integrate a PayPal Website Payments Standard > Cart Upload payment
I'm trying to integrate PayPal into my Magento 1.6 store, preferably the Website Payments
I have a php application , and I'm trying to integrate with paypal payment
While trying to integrate Yahoo Media Player into my own website, I want to
I'm trying to integrate some photo related functionality with my site and facebook. I
I'm trying integrate spring with hibernate but catch exception on project start. Caused by:
I'm trying integrate spring with hibernate but catch NamingException: Context is read only stacktrace
I am trying to integrate NHibernate.Search into a multi-lingual website. Now, this website contains
I'm trying to integrate facebook login on a site I'm working on, but so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.