Community Forums 

Main Content

Re:Using addmulti.cfm

    Jan 24 2015 18:24:38



    Join date : 2014-12-04      Posts : 57

    GT said This is wrong...

    <input type="hidden" name="tax" value="0">
    <input type="hidden" name="qty1" value="1">

    <p>Quantity: <input type="text" name="qty1" size="5">

    Instead use....

    <input type="hidden" name="tax1" value="0">
    <p>Quantity: <input type="text" name="qty1" size="5">

    If you want a text area for the second product, simply make all product2 into product2[] including the new text area.

    Thank you for all. Okay, i see its redundant to have 2 of the <input type="hidden" name="qty1" value="1">

    What is the [] effect or function? I have been able to make a form in other situations work by removing []. Is it that if you use it as product[] then it must have a target, e.g. text[]?