Community Forums 

Main Content

Need help with a simple form

    Sep 22 2013 17:21:33



    Join date : 2008-09-18      Posts : 97

    Not sure why I can't figure this out. Below is my form, but I need to change it to each item having a quantity dropdown instead of a text fill in box. For some reason I can't get the addmulti and productpr to work with a dropdown on each item. I want a customer to be able to choose between 0-10 per item. This is the form before I started making changes and messing it all up. LOL

    <form method="post" action="">;
    <input type="hidden" name="userid" value="B870029">
    <input type="hidden" name="return" value="">;

    Qty:&nbsp;<input type="text" name="qty1" size="1">&nbsp;Stainless Steel Box Chain
    <input type="hidden" name="product1" value="Stainless Steel Box Chain">
    <input type="hidden" name="price1" value="5.95">
    <input type="hidden" name="scode1" value="box"><br>

    Qty:&nbsp;<input type="text" name="qty2" size="1">&nbsp;Stainless Steel Flat Rectagle Chain
    <input type="hidden" name="product2" value="Stainless Steel Flat Rectangle Chain">
    <input type="hidden" name="price2" value="5.95">
    <input type="hidden" name="scode2" value="chain-flat"><br>

    Qty:&nbsp;<input type="text" name="qty3" size="1">&nbsp;Stainless Steel Round Knitted Mesh Chain
    <input type="hidden" name="product3" value="Stainless Steel Round Knitted Mesh Chain">
    <input type="hidden" name="price3" value="5.95">
    <input type="hidden" name="scode3" value="chain-round"><br>

    <input type="submit" value="Add to Cart" STYLE="background-color:aaaa77">

    Howaco Glass Supply Co

    Sep 22 2013 19:57:10


    Debbie Q

    Join date : 2008-09-18      Posts : 4998

    Instead of <input type="text" name="qty1" size="1"> use

    <select name="qty1" size="1">
    <option selected value=""></option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>

    Debbie Q

    Mal's Support:
    GT's Forms and examples:
    Helpful java scripts:
    Shipping help documents:

    My Create-A-Book Publishing -
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.

    Sep 22 2013 21:20:42



    Join date : 2008-09-18      Posts : 97

    Thank you Deb, for some reason I had it stuck in my head that I needed to use productpr. No idea why. lol, thanks again.

    Howaco Glass Supply Co