Community Forums 

Main Content

Using addmulti.cfm

    Jan 24 2015 11:37:51

    #1

    Bacchus

    Join date : 2014-12-04      Posts : 57

    Is it possible to add to the page a simple "select option" and a text area box that isn't specific to a particular one of the multiple items?

    In particular - can you add a text area to add multi.cfm and if so how to do?

    Bacchus




    Jan 24 2015 14:29:21

    #2

    Bacchus

    Join date : 2014-12-04      Posts : 57

    Bacchus said Is it possible to add to the page a simple "select option" and a text area box that isn't specific to a particular one of the multiple items?

    In particular - can you add a text area to add multi.cfm and if so how to do?


    This is how and it includes a fixed fee as well. Using addmulti.cfm:
    <input type="hidden" name="userid" value="xxxxxxxx">
    <input type="hidden" name="product1" value="Wine Party Plate">
    <input type="hidden" name="discountpr1" value ="71,x.xx:72,2.50:107,2.36:249,2.29:501,1.99:0,1.89">
    <input type="hidden" name="return" value="www.axxxxxx.com/imprintx.html">;;
    <input type="hidden" name="units1" value="0.25">
    <input type="hidden" name="tax" value="0">
    <input type="hidden" name="qty1" value="1">

    <p>Quantity: <input type="text" name="qty1" size="5">
    Select Round or Square Plate :
    <select name="product1[]">
    <option value="Wine Party Plate Round"> Select Round or Square</option>
    <option value="Wine Party Plate Round"> Round </option>
    <option value="Wine Party Plate Square">Square</option>
    </select></p>

    One Time Die Set Up Charge $45.00
    <input type="hidden" name="product2" value="One Time Die Set Up Charge">
    <input type="hidden" name="price2" value="45.00">
    <input type="checkbox" name="qty2" value="1" ><br>

    <p><b>For imprinting your text enter what you want imprinted here</b> Enter Here<br>
    <textarea name="product1[]" rows="3" cols="60"></TEXTAREA>
    <br><br>

    Bacchus




    Jan 24 2015 16:58:01

    #3

    GT

    Join date : 2008-09-18      Posts : 3207

    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.

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

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




    Jan 24 2015 18:24:38

    #4

    Bacchus

    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[]?

    Bacchus