Community Forums 

Main Content

Need help with a simple form

    Sep 22 2013 17:21:33

    #1

    JameyLynn

    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="http://ww9.aitsafe.com/cf/addmulti.cfm">;
    <input type="hidden" name="userid" value="B870029">
    <input type="hidden" name="return" value="www.howacoglass.com/beadable_items.html">;

    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">
    </form>

    JameyLynn
    Howaco Glass Supply Co
    www.howacoglass.com




    Sep 22 2013 19:57:10

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4996

    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>
    </select>

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    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

    #3

    JameyLynn

    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.

    JameyLynn
    Howaco Glass Supply Co
    www.howacoglass.com