Community Forums 

Main Content

Re:Holy cats, I'm confused!

    Sep 15 2008 05:45:08

    #1

    GT

    Join date : 2008-09-18      Posts : 3207

    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.