Announcement

Collapse
No announcement yet.

radio button opinions linked to a PayPal button

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • radio button opinions linked to a PayPal button


    Hello All,
    I'm Starting a web site and I have ratio button opinions and I would like to link it to a PayPal button so a pond check out ill be able to see the selection they have made. What code do I put where to make this happen?

    Radio code
    <form action="/html/codes/html_form_handler.cfm" method="get">

    <input type="radio" name="Clutch_tool" value="5302-K" /><span class="blue"> 5302-K<br />
    <input type="radio" name="Clutch_tool" value="5335-K" /> 5335-K<br />
    <input type="radio" name="Clutch_tool" value="5367-K" /> 5367-K<br />
    <input type="radio" name="Clutch_tool" value="5378-K+" /> 5378-K+<br />
    <input type="radio" name="Clutch_tool" value="5403-K+" /> 5403-K+<br />
    <input type="radio" name="Clutch_tool" value="5415-K" /> 5415-K<br /></span><br />

    <p align="center"><input type="submit" value="Submit" /><input type="reset" value="Reset" /></p>
    </form>

    PayPal Button Code
    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="P9EK6JQ7LDN2C">
    <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>

  • #2
    Hi there Extreme1,

    and a warm welcome to these forums.

    I am not 100% sure that I understood your
    requirements but this is my guess...

    Code:
    
    <!DOCTYPE html>
    <html lang="en">
    <head>
    
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
    
    <title>untitled document</title>
    
    <link rel="stylesheet" href="screen.css" media="screen">
    
    <style media="screen">
    body {
        background: #f0f0f0;
        text-align: center;
     }
    
    #paypay-form  {
        display: inline-block;
        padding: 2em 3em;
        border: 0.06em solid #999;
        border-radius: 1em;
        background-color: #fff;
        box-shadow: inset 0 0 1em #999, 0.25em 0.25em 0.25em #666;
        text-align: left;
     }
    
    #paypay-form  fieldset {
        padding-top: 1em;
        border: 0;
     }
    
    #paypay-form  legend {
        font-weight: bold;
        color: #444;
     }
    
    #paypay-form  label {
        display: block;
     }
    
    #paypay-form input[type="image"] {
        display: block;
        margin-top: 2em;
        border: 0;
     }
    </style>
    
    </head>
    <body>
    
    <form id="paypay-form" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    
    <fieldset><legend>Clutch tool types</legend>
    
     <label><input type="radio" name="os0" value="5302-K">: 5302-K</label>
     <label><input type="radio" name="os0" value="5335-K">: 5335-K</label>
     <label><input type="radio" name="os0" value="5367-K">: 5367-K</label>
     <label><input type="radio" name="os0" value="5378-K+">: 5378-K+</label>
     <label><input type="radio" name="os0" value="5403-K+">: 5403-K+</label>
     <label><input type="radio" name="os0" value="5415-K">: 5415-K</label>
    
     <input type="hidden" name="cmd" value="_cart">
     <input type="hidden" name="business" value="yourname@somename.com">
     <input type="hidden" name="lc" value="US">
     <input type="hidden" name="item_name" value="Easy fill cap">
    
     <input type="hidden" name="button_subtype" value="products">
     <input type="hidden" name="no_note" value="0">
     <input type="hidden" name="currency_code" value="USD">
     <input type="hidden" name="tax_rate" value="1.000">
    
     <input type="hidden" name="shipping" value="1.00">
     <input type="hidden" name="add" value="1">
     <input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHostedGuest">
     <input type="hidden" name="on0" value="types">
    
     <input type="hidden" name="currency_code" value="USD">
     <input type="hidden" name="option_select0" value="5302-K">
     <input type="hidden" name="option_amount0" value="10.00">
     <input type="hidden" name="option_select1" value="5335-K">
    
     <input type="hidden" name="option_amount1" value="20.00">
     <input type="hidden" name="option_select2" value="5367-K">
     <input type="hidden" name="option_amount2" value="30.00">
     <input type="hidden" name="option_select3" value="5378-K+">
    
     <input type="hidden" name="option_amount3" value="40.00">
     <input type="hidden" name="option_select4" value="5403-K+">
     <input type="hidden" name="option_amount4" value="50.00">
     <input type="hidden" name="option_select5" value="5415-K">
    
     <input type="hidden" name="option_amount5" value="60.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" name="submit" alt="PayPal - The safer, easier way to pay online!">
     <img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" alt="">
    
    </fieldset>
    
    </form>
    
    </body>
    </html>
    


    ~ the original bald headed old fart ~

    Comment


    • #3
      Wow thanks, By the looks of it I think your right I was missing some stuff. Anyways thanks for the speedy response.

      Comment


      • #4
        No problem, you're very welcome.


        ~ the original bald headed old fart ~

        Comment

        Working...
        X