Community Forums 

Main Content

Text Box Problem

    Sep 05 2008 21:34:58

    #1

    TheUniqueSheep

    Join date : 2008-09-18      Posts : 5

    I have just started using Mal's and am trying to set up buttons that include a text box. Customers need to be able to type in a color name when they add the item to the cart, then have that color information show up in the cart (and of course show up in the report that I receive). I added the following html to my regular button html and I got a text box, but it doesn't transfer to the cart. Am I missing something?

    < input type="text" name="product1[]" size="15"> (without the space, of course)

    Thanks for the help. I hope someone has a simple solution to my problem!

    Laura



    Sep 05 2008 23:15:17

    #2

    Maida Carpio Scott

    Join date : 2008-09-18      Posts : 24

    Can you post the code for the whole form?



    Sep 06 2008 00:49:34

    #3

    TheUniqueSheep

    Join date : 2008-09-18      Posts : 5

    This is the full code (w/ ID#, item, price, etc replaced of course):

    <form action="http://ww11.aitsafe.com/cf/add.cfm"; method="post">
    <input name="userid" type="hidden" value="IDNUMBER" />
    <input name="product" type="hidden" value="ITEM DESCRIPTION" />
    <input name="price" type="hidden" value="PRICE" />
    <input name="return" type="hidden" value="www.mals-e.com/support/help2.php"; />
    <input name="submit2" type="submit" value="Add to Cart! />
    <input type=hidden name =return value=www.theuniquesheep.com/home.htm>
    </FORM>



    Sep 06 2008 00:52:33

    #4

    TheUniqueSheep

    Join date : 2008-09-18      Posts : 5

    oops, when I copied and pasted that I didn't include the text box part. This is the actual code I'm using:


    <form action="http://ww11.aitsafe.com/cf/add.cfm";; method="post">
    <input name="userid" type="hidden" value="IDNUMBER" />
    <input name="product" type="hidden" value="ITEM DESCRIPTION" />
    <input name="price" type="hidden" value="PRICE" />
    <input name="return" type="hidden" value="www.mals-e.com/support/help2.php";; />
    <input type="text" name="product1[]" size="15">
    <input name="submit2" type="submit" value="Add to Cart! />
    <input type=hidden name =return value=www.theuniquesheep.com/home.htm>
    </FORM>



    Sep 06 2008 02:02:47

    #5

    tom g

    Join date : 2008-09-18      Posts : 488

    Your first product parameter had to be an array (have brackets). The second product parameter had a number suffix - that is only for addmulti.cfm.



    Sep 06 2008 02:22:12

    #6

    TheUniqueSheep

    Join date : 2008-09-18      Posts : 5

    Thanks so much! I new I was missing something simple. Its working now. Now I just have to go in and change all of the dozens of buttons on the site..

    Thanks!

    Laura