Community Forums 

Main Content

Holy cats, I'm confused!

    Sep 15 2008 04:36:46

    #1

    Rick

    Join date : 2008-09-18      Posts : 1

    Hi!

    So I'm trying to set up a form that lets the user first drop down a SIZE selection, then a COLOR selection, then click BUY and add it to their cart.

    I'm doing something wrong.

    Here's what my code looks like:

    <div id="dropdownorder">
    <form action="http://ww11.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="hidden" name="userid" value="(My User Name is here)">
    <input type="hidden" name="return" value="www.mywebsite.com">;
    <input type="hidden" value="1" name="qty1">
    <input type="hidden" name="price1" value="15">


    <input type="hidden" value="1" name="qty2">

    <select name="onesieSize">
    <option selected value="">Choose a size</option>
    <option value="0 - 3m onesie">0-3m onesie</option>
    <option value="6 - 12m onesie">6-12m onesie</option>
    <option value="Toddler Tee">Toddler Tee</option>
    </select>

    <select name="Color">
    <option selected value="">...and a color</option>
    <option value="White">White</option>
    <option value="Light Pink">Light Pink</option>
    <option value="Light Blue">Light Blue</option>
    </select>
    <br /><br />
    <input name="submit" type="submit" value="Buy Now">
    </form>

    When I click the BUY NOW button, it just says "Your cart is empty"

    What have I got wrong?

    Thanks!



    Sep 15 2008 05:45:08

    #2

    GT

    Join date : 2008-09-18      Posts : 3215

    Rick said: Hi!

    So I'm trying to set up a form that lets the user first drop down a SIZE selection, then a COLOR selection, then click BUY and add it to their cart.

    I'm doing something wrong.

    Here's what my code looks like:

    <div id="dropdownorder">
    <form action="http://ww11.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="hidden" name="userid" value="(My User Name is here)">
    <input type="hidden" name="return" value="www.mywebsite.com">;
    <input type="hidden" value="1" name="qty1">
    <input type="hidden" name="price1" value="15">


    <input type="hidden" value="1" name="qty2">

    <select name="onesieSize">
    <option selected value="">Choose a size</option>
    <option value="0 - 3m onesie">0-3m onesie</option>
    <option value="6 - 12m onesie">6-12m onesie</option>
    <option value="Toddler Tee">Toddler Tee</option>
    </select>

    <select name="Color">
    <option selected value="">...and a color</option>
    <option value="White">White</option>
    <option value="Light Pink">Light Pink</option>
    <option value="Light Blue">Light Blue</option>
    </select>
    <br /><br />
    <input name="submit" type="submit" value="Buy Now">
    </form>

    When I click the BUY NOW button, it just says "Your cart is empty"

    What have I got wrong?

    Thanks!


    Try this;

    <form action="http://ww9.aitsafe.com/cf/add.cfm"; method="post">
    <input type="hidden" name="userid" value="B5124789">
    <input type="hidden" name="return" value="www.tne.co.uk/2006/mals/">;;
    <input type="hidden" name="qty" value="1">
    <input type="hidden" name="price" value="15.00">

    <select name="product[]">
    <option selected value="">Choose a size</option>
    <option value="0 - 3m onesie">0-3m onesie</option>
    <option value="6 - 12m onesie">6-12m onesie</option>
    <option value="Toddler Tee">Toddler Tee</option>
    </select>

    <select name="product[]">
    <option selected value="">...and a color</option>
    <option value="White">White</option>
    <option value="Light Pink">Light Pink</option>
    <option value="Light Blue">Light Blue</option>
    </select>
    <br /><br />
    <input name="submit" type="submit" value="Buy Now">
    </form>

    I don't think you've read or understood the FAQ's.
    hih.

    Mals forms: http://www.tne.co.uk/2006/mals/

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Sep 15 2008 15:31:52

    #3

    Debbie Q

    Join date : 2008-09-18      Posts : 4996

    The cart does not understand field names like onsiesize and color. A drop down menu has to be named product[] or since you are using addmulti for your form product1[].


    <select name="product1[]">

    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 16 2008 10:14:20

    #4

    carganar

    Join date : 2008-09-18      Posts : 17

    Is it possible to use the same kind of form with your own custom buttons?



    Sep 16 2008 16:04:20

    #5

    Debbie Q

    Join date : 2008-09-18      Posts : 4996

    Change image info to direct to your own image.

    <input type="image" src="images/add_to_basket.gif" border="0">

    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.