Community Forums 

Main Content

form help

    Mar 02 2009 11:34:16

    #1

    pcguy

    Join date : 2008-09-18      Posts : 130

    I am trying to add multiple radio buttons in 2 groups and it is not working here is my code

    <form action="http://ww11.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input name="userid" type="hidden" value="D939432">
    <input name="return" type="hidden" value="www.mysite.com">;
    <input type="hidden" name="noqty" value="2">
    <input type="hidden" name="price" value="50.00">
    <input type="hidden" name="product" value="Software">
    <INPUT TYPE="HIDDEN" NAME="nocart">

    <input type="radio" name="group-1" value="with packaging">
    <input type="hidden" name="qty1" value="1">With packaging
    <br>
    <input type="radio" name="group-1" value="No packaging">
    <input type="hidden" name="qty2" value="1">No packaging<br>
    <br>
    <input type="radio" name="group-2" value="Mals Cart">
    <input type="hidden" name="qty3" value="1">Mals Cart
    <br>
    <input type="radio" name="group-2" value="contact me">
    <input type="hidden" name="qty4" value="1">dont contact me
    <br>

    <input type="image" src="cart/addcart.gif" alt="Add">

    </form>



    Mar 02 2009 12:12:28

    #2

    just visiting

    Join date : 2008-09-18      Posts : 2950

    I'm not entirely clear what you are trying to do but if you wish to use addmulti.cfm then you need product1, price1, qty1, noqty1.

    To add the 'free' information, change to product1[]. The radio button names have to be meaningful to the cart. product1[] would do normally but to have multiple groups of buttons I used product1[1] - the second '1' is used by the browser but ignored by the cart.

    Maybe Debbie can tell us how to get 'software' to be the first word in the product - it came up last for me.

    <form action="http://ww11.aitsafe.com/cf/addmulti.cfm";; method="post">
    <input name="userid" type="hidden" value="D939432">
    <input name="return" type="hidden" value="www.mysite.com">;;
    <input type="hidden" name="product1[]" value="Software">
    <input type="hidden" name="noqty1" value="2">
    <input type="hidden" name="price1" value="50.00">

    <input type="hidden" name="qty1" value="1">
    <!-- <input type="hidden" name="nocart"> -->

    <input type="radio" name="product1[1]" value="with packaging">
    With packaging
    <br>
    <input type="radio" name="product1[1]" value="No packaging">
    No packaging
    <br>
    <input type="radio" name="product1[2]" value="Mals Cart">
    Mals Cart
    <br>
    <input type="radio" name="product1[3]" value="contact me">
    contact me
    <br>
    <input type="radio" name="product1[3]" value="don't contact me">
    dont contact me
    <br>
    <input type="image" src="cart/addcart.gif" alt="Add">
    </form>

    Alan
    Some shipping help documents are available at www.stoner.org.uk/mals/