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 6551549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:21:06+00:00 2026-05-25T12:21:06+00:00

I have a rather complicated issue that I am trying to solve in PHP

  • 0

I have a rather complicated issue that I am trying to solve in PHP and Paypal’s IPN codes..

I am selling one product which has multiple licenses in a drop down box, for example:

5 users – $20
10 users- $50
20 users – $100

Once someone purchases a license, I got the $payment_amount passed from paypal and did an if, ifelse statement to generate the number of usernames accordingly.

I did not think about different currencies, therefore this technique won’t work. Instead, I need to be able to assign an ID to each option in the drop down box and pass that instead.

I was wondering if this is possible and how I might go about doing this.

  • 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-25T12:21:06+00:00Added an answer on May 25, 2026 at 12:21 pm

    You could easily use any of the variables in the list of HTML variables to accomplish what you wish.

    1. You could use invoice, and save the information to a database.
    2. You could use on0 and os0 to define your own variables and price values.
    3. You could define the ‘custom’ variable and set it to whatever your dreams desire.

    All of them are equally effective, though the most commonly used method is probably #2.

    <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="tester@test.com">
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="item_name" value="asdfsafd">
    <input type="hidden" name="button_subtype" value="products">
    <input type="hidden" name="no_note" value="0">
    <input type="hidden" name="add" value="1">
    <input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest">
    <table>
    <tr><td><input type="hidden" name="on0" value="numUsers">numUsers</td></tr><tr><td><select name="os0">
        <option value="5 users">5 users $5.00</option>
        <option value="10 users">10 users $9.00</option>
        <option value="20 users">20 users $17.00</option>
    </select> </td></tr>
    </table>
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="option_select0" value="5 users">
    <input type="hidden" name="option_amount0" value="5.00">
    <input type="hidden" name="option_select1" value="10 users">
    <input type="hidden" name="option_amount1" value="9.00">
    <input type="hidden" name="option_select2" value="20 users">
    <input type="hidden" name="option_amount2" value="17.00">
    <input type="hidden" name="option_index" value="0">
    <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">
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a rather complicated deploy setup for our Drupal site that is a
I have the following tricky problem: I have implemented a (rather complicated) class which
I have a rather complicated Binding situation. I have a solution that I created
I have a rather complicated setup which I have boiled down to the code
I have one main view with an associated controller. I have some rather complicated
I have a rather complicated scenario that I have never really had to deal
I have rather large input XML files that must be converted to a given
I have a rather big number of source files that I need parse and
Just out of curiosity, for applications that have a fairly complicated module tree, would
I have a (rather complicated) SQL statement where I select data from lots of

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.