Please can someone help me paypal coding

Discussion in 'HTML & Website Design' started by Dee2007, Sep 28, 2007.

  1. #1
    Hi, I am trying to get this sorted asap, and I stuck, if someone can help me I'd be very grateful.

    So far I have it working, but the client wants it to work another way.
    They want it to be

    1 meal $12
    2 meals $22
    3 and 4 meals $30

    This is the the form code, I currently have

    <form action="https://www.paypal.com/cgi-bin/webscr" method="post"
    onsubmit="this.target = 'paypal';
    SetAmt (1, 12, 2, 10, 3, 9, 4, 8);
    return ReadForm (this);">
    <table><tr><td><input type="hidden" name="on0" value="Work Address">Work Address</td><td><select name="os0"><option value="Please Select">Please Select<option value="Whirman HS">Whirman HS<option value="Air Rights Bldg">Air Rights Bldg</select>
    </td></tr><tr><td><input type="hidden" name="on1" value="Office/Room Number">Office/Room Number</td><td><input type="text" name="os1" maxlength="60"></td></tr>

    <td>Quantity</td><td>
    <select name="qty" style="width:105px">
    <option value="1">1 Meal $12</option>
    <option value="2">2nd Meal $10</option>
    <option value="3">3rd Meal $9</option>
    <option value="4">4th Meal $8</option>
    </select></td></tr>

    </table><input type="image" src="https://www.paypal.com//en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    <input type="hidden" name="add" value="1">
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="business" value="lkdobbs@hotmail.com">
    <input type="hidden" name="item_name" value="Esther's Tandoori Chicken">
    <input type="hidden" name="amount" value="12.00">
    <input type="hidden" name="shipping" value="0.00">
    <input type="hidden" name="page_style" value="Kitchen_Dinners">
    <input type="hidden" name="buyer_credit_promo_code" value="">
    <input type="hidden" name="buyer_credit_product_category" value="">
    <input type="hidden" name="buyer_credit_shipping_method" value="">
    <input type="hidden" name="buyer_credit_user_address_change" value="">
    <input type="hidden" name="no_shipping" value="2">
    <input type="hidden" name="return" value="http://www.lisaskitchendinners.com/Kitchen_Dinners/Thank_You.html">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="tax" value="0.00">
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="bn" value="PP-ShopCartBF">
    <input type="hidden" name="baseamt" value="12.00" />
    <input type="hidden" name="basedes" value="Esther’s Tandoori Chicken" />

    </form>



    Thanks :)

    Dee
     
    Dee2007, Sep 28, 2007 IP
  2. jared

    jared Peon

    Messages:
    231
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Few things here:

    1. Exactly what is not working? I can't read minds.

    2. Edit your post and put the code in between the CODE tags so we can read it easier.

    cheers
     
    jared, Sep 28, 2007 IP
  3. Dee2007

    Dee2007 Active Member

    Messages:
    1,185
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    88
    #3
    Hi, I figured it out

    Thanks

    Dee
     
    Dee2007, Sep 29, 2007 IP