simple html/java code help... Please!!!

Discussion in 'Programming' started by rapidadds, Dec 29, 2008.

  1. #1
    ok, my site: rapidadds.com/mobaccounts/test.html
    I want it to read both of the things, so that they can buy both at the same time, and pick the different quantites for each... I cannot get it to work for what ever I do, so please help. Code is below...

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    
    <head>
      <title></title>
      <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    </head>
    <body>
    
    
    
    <!-- Start of Script -->
     <SCRIPT language=javascript>
    function CalculateOrder(form)
    {
    
    if (form.os0.value == "Bountie Hits ($1.00)")
     {
     form.amount.value = 1.00;
     form.item_number.value = "1019-Small";
     }
    
    } 
    </SCRIPT>
    <!-- End of Script -->
    
    
    <!-- Start of Form -->
    <!-- Note: target="paypal" was replaced with the variable target="_self" -->
    <!-- Note: shopping_url also added to code -->
    <!-- These two changes allow better functionality with IE and Firefox -->
    <form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    &nbsp;&nbsp;&nbsp;&nbsp;Item:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;Quantity:<br>&nbsp;&nbsp;
    <input type="hidden" name="on0" value="Size">
    <SELECT name="os0">
    <OPTION value="Bountie Hits ($1.00)" selected>Bountie Hits ($1.00)</OPTION>
    Quantity:&nbsp;&nbsp;
    <select name="quantity">
    <option value="1" selected>1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    <option value="10">10</option>
    </select>
    
    
    
    
    <br><br>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <!-- Start of Script -->
     <SCRIPT language=javascript>
    function CalculateOrder(form)
    {
    
    if (form.os0.value == "Levels (3.00)")
     {
     form.amount.value = 1.00;
     form.item_number.value = "1019-Small";
     }
    
    } 
    </SCRIPT>
    <!-- End of Script -->
    
    <!-- Start of Form -->
    <!-- Note: target="paypal" was replaced with the variable target="_self" -->
    <!-- Note: shopping_url also added to code -->
    <!-- These two changes allow better functionality with IE and Firefox -->
    <form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    &nbsp;&nbsp;&nbsp;&nbsp;Item:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;Quantity:<br>&nbsp;&nbsp;
    <input type="hidden" name="on0" value="Size">
    <SELECT name="os0">
    <OPTION value="Levels (3.00)" selected>Levels (3.00)</OPTION>
    Quantity:&nbsp;&nbsp;
    <select name="quantity">
    <option value="1" selected>1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    <option value="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option value="9">9</option>
    <option value="10">10</option>
    </select>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <INPUT onclick=CalculateOrder(this.form) type="image" alt="Make payments with PayPal - it's fast, free and secure!" 
    src="https://www.paypal.com//en_US/i/btn/btn_cart_LG.gif" border=0 name="submit">
    <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="hiatts@mchsi.com">
    <input type="hidden" name="item_name" value="Widget">
    <input type="hidden" name="amount">
    <input type="hidden" name="no_shipping" value="2">
    <input type="hidden" name="shopping_url" value="http://www.rapidadds.com/mobaccounts/custom.html">
    <input type="hidden" name="return" value="http://www.rapidadds.com/mobaccounts/custom.html">
    <input type="hidden" name="cancel_return" value="http://www.rapidadds.com/mobaccounts/custom.html">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">
    </FORM>
    <!-- End of Form -->
    
    </body>
    </html>
    
    HTML:

     
    rapidadds, Dec 29, 2008 IP
  2. rhoula

    rhoula Well-Known Member

    Messages:
    875
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    145
    #2
    since the prices are both the same I will put them both in the same drop down but with different quantities that may make it easier.
    Please let me now if there is anything I could help you with.
    Thank you
     
    rhoula, Dec 29, 2008 IP
  3. rapidadds

    rapidadds Guest

    Messages:
    240
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well, they were in the same drop box, but when i get this figured out, im going to have around 10 different sections, and the quantity of all of it will be different, like some will be money, some will be writing, just all different, what im doing is creating account for this thing, and they will have different options to choose from, like what level, how much money on the account, how many bounty hits, ECT, which is why i need them on different sections.
     
    rapidadds, Dec 29, 2008 IP