Community Forums 

Main Content

get first descriptor to show

    Nov 01 2010 01:35:28

    #1

    Matte

    Join date : 2008-11-02      Posts : 27

    Hi
    I have products adding to the cart OK, but cannot get the descriptor to show (sea sky land in this example.

    I am sure it is something stupidly simple.
    Thanks

    <form action="http://ww9.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="hidden" name="return" value="www.caricatureking.com/"; />
    <input type="hidden" name="userid" value="B525045" />
    <input type="hidden" name="currency" value="0">


    <INPUT TYPE="HIDDEN" NAME="product[]" VALUE="Scene">
    <select name="product[]">
    <option selected value="">Select scene</option>
    <option value="sea"> Sea </option>
    <option value="Sky"> Sky </option>
    <option value="Land"> Land </option>
    </select>

    <input type="hidden" name="product1" value="size">
    <input type="hidden" name="qty1" value="1">
    size <br />
    <select name="productpr1">
    <option selected value="">Select size </option>
    <option value="Small :17">Small $17.00</option>
    <option value="Medium :18">Medium $18.00</option>
    <option value="Large :19">Large $19.00</option>
    </select><br />

    <br />

    <input type="hidden" name="product2" value="number">
    <input type="hidden" name="qty2" value="1">
    number<br />
    <select name="productpr2">
    <option selected value="">Select number </option>
    <option value="five :7">five $7.00</option>
    <option value="ten :8">ten $8.00</option>
    <option value="fifteen :9">fifteen $9.00</option>
    </select><br />
    <br />
    <input type="submit" value="Add to Order">
    </form>



    Nov 01 2010 03:37:50

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    <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.




    Nov 01 2010 04:32:44

    #3

    Matte

    Join date : 2008-11-02      Posts : 27

    Thanks Debbie.
    I tried that but no luck

    Plus tried
    <INPUT TYPE="HIDDEN" NAME="product1[]" VALUE="Scene">
    <select name="product1[]">

    <INPUT TYPE="HIDDEN" NAME="product[]" VALUE="Scene">
    <select name="product1[]">

    and

    <INPUT TYPE="HIDDEN" NAME="product1[]" VALUE="Scene">
    <select name="product[]">


    M



    Nov 01 2010 04:49:06

    #4

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    <INPUT TYPE="HIDDEN" NAME="product1[]" VALUE="Scene">
    <select name="product1[]">

    Is correct. When you tried it maybe you were testing a cached page? Make sure you refresh.

    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.




    Nov 01 2010 05:21:16

    #5

    Matte

    Join date : 2008-11-02      Posts : 27

    Yes the page cache had been cleared. The 'scene' element is still not added to the cart, however.



    Nov 01 2010 07:27:42

    #6

    Alan

    Join date : 2008-09-18      Posts : 2951

    You need a numeric suffix but do you now have two product1s, scene and size?

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




    Nov 01 2010 07:42:36

    #7

    Matte

    Join date : 2008-11-02      Posts : 27

    I did, but have changed the code. This is what I have now:

    <form action="http://ww9.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="hidden" name="return" value="www.caricatureking.com/"; />
    <input type="hidden" name="userid" value="B525045" />
    <input type="hidden" name="currency" value="0">


    <INPUT TYPE="HIDDEN" NAME="product[]" VALUE="Scene">
    <select name="product1[]">
    <option selected value="">Select scene</option>
    <option value="sea"> Sea </option>
    <option value="Sky"> Sky </option>
    <option value="Land"> Land </option>
    </select>

    <input type="hidden" name="product2" value="">
    <input type="hidden" name="qty2" value="1">
    size <br />
    <select name="productpr2">
    <option selected value="">Select size </option>
    <option value="Small :17">Small $17.00</option>
    <option value="Medium :18">Medium $18.00</option>
    <option value="Large :19">Large $19.00</option>
    </select><br />

    <br />

    <input type="hidden" name="product3" value="CARDS ORDERED">
    <input type="hidden" name="qty3" value="1">
    number<br />
    <select name="productpr3">
    <option selected value="">Select number </option>
    <option value="five :7">five $7.00</option>
    <option value="ten :8">ten $8.00</option>
    <option value="fifteen :9">fifteen $9.00</option>
    </select><br />
    <br />
    <input type="submit" value="Add to Order">
    </form>



    Nov 01 2010 09:15:37

    #8

    GT

    Join date : 2008-09-18      Posts : 3207

    You have a mix of HTMLl and XHTML coding in the form Matte, plus coding not needed, plus the first product was wrong in using product[] and not product1[].

    Try this:

    <form action="http://ww9.aitsafe.com/cf/addmulti.cfm"; method="post">
    <input type="hidden" name="return" value="www.caricatureking.com/"; />
    <input type="hidden" name="userid" value="B525045" />
    <input type="hidden" name="currency" value="0" />

    <input type="hidden" name="qty1" value="1" />
    <input type="hidden" name="product1[]" value="Scene" />
    <select name="product1[]">
    <option selected value="">Select scene</option>
    <option value="Sea">Sea</option>
    <option value="Sky">Sky</option>
    <option value="Land">Land</option>
    </select>

    <br>
    <select name="productpr1">
    <option selected value="">Select size </option>
    <option value="Small :17">Small $17.00</option>
    <option value="Medium :18">Medium $18.00</option>
    <option value="Large :19">Large $19.00</option>
    </select>
    <br />

    <input type="hidden" name="product2" value="CARDS ORDERED" />
    <input type="hidden" name="qty2" value="1" />
    <select name="productpr2">
    <option selected value="">Select number</option>
    <option value="five :7">five $7.00</option>
    <option value="ten :8">ten $8.00</option>
    <option value="fifteen :9">fifteen $9.00</option>
    </select>
    <br />
    <input type="submit" value="Add to Order" />
    </form>

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

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




    Nov 02 2010 00:06:52

    #9

    Matte

    Join date : 2008-11-02      Posts : 27

    Briliant!! THanks!!!