Community Forums 

Main Content

A pull down menu with several text boxes

    Oct 24 2010 14:23:02

    #1

    Flaggfish

    Join date : 2008-09-23      Posts : 77

    I need to have a pulldown menu for ordering season passes for a ski center. Buyers will be asked to enter several names and addresses in addition to the menu item they select. I'd like each set of names and addresses to be on a different line in the cart. This is what I have so far:
    (The 1 text box isn't showing up on the website. :-() Ca anyone help me tweak this?
    <form method="POST" action="http://ww4.aitsafe.com/cf/addmulti.cfm">;
    <div align="left">
    <p>
    <input type="hidden" name="return" value="www.skimorsefarm.com/buytickets.html">;
    <input type="hidden" name="userid" value="65393889">
    <input type="hidden" name="qty" value="1">
    <select size="1" name="productpr1[]">
    <option value="Choose Pass Option">Choose Pass Option</option>
    <option value="Early Bird Adult:100">Early Bird Adult - $100.00</option>
    <option value="Early Bird Senior:75">Early Bird Senior - $75.00</option>
    <option value="Early Bird Youth:75">Early Bird Youth - $75.00</option>
    <option value="Early Bird Couple:175">Early Bird Couple - $175.00</option>
    <option value="Early Bird Family:205">Early Bird Family - $205.00</option>
    </select>
    </p>
    <p>Add names of users associated with this pass:<br />
    <textarea name="product1[]" cols="40" rows="3"></textarea>
    </p>
    <p><br>
    Add names of users associated with this pass:<br />

    <textarea name="product1[]" cols="40" rows="3"></textarea>
    <br>

    <input type="submit" value="Add to Cart">
    &nbsp;&nbsp;&nbsp;
    <INPUT TYPE="SUBMIT" VALUE="Show Cart">
    &nbsp;&nbsp;&nbsp;
    <input type="reset" value="Reset">



    Oct 24 2010 16:10:27

    #2

    Flaggfish

    Join date : 2008-09-23      Posts : 77




    Oct 24 2010 16:18:33

    #3

    Flaggfish

    Join date : 2008-09-23      Posts : 77

    PS Ideally this form would have text areas for 5 different sets of names and addresses



    Oct 24 2010 17:04:25

    #4

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    How about something like this? Adding the other 3 uses the same way.

    <form method="POST" action="http://ww4.aitsafe.com/cf/addmulti.cfm">;
    <input type="hidden" name="return" value="www.skimorsefarm.com/buytickets.html">;;
    <input type="hidden" name="userid" value="65393889">
    <input type="hidden" name="qty1" value="1">
    <select size="1" name="productpr1">
    <option value="Choose Pass Option">Choose Pass Option</option>
    <option value="Early Bird Adult:100">Early Bird Adult - $100.00</option>
    <option value="Early Bird Senior:75">Early Bird Senior - $75.00</option>
    <option value="Early Bird Youth:75">Early Bird Youth - $75.00</option>
    <option value="Early Bird Couple:175">Early Bird Couple - $175.00</option>
    <option value="Early Bird Family:205">Early Bird Family - $205.00</option>
    </select>
    </p>
    <input type="hidden" name="product1[]" value="{br}User 1:,">
    <p>Add name and Address of user1 associated with this pass:<br />
    <textarea name="product1[]" cols="40" rows="3">

    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.




    Oct 24 2010 21:06:57

    #5

    Flaggfish

    Join date : 2008-09-23      Posts : 77

    Thanks Debbi
    I redid the code as you suggested. I assumed I needed to use user 1 user 2 user 3 etc. But it still doesn't work. It doesn't even work if I skip the users fields and just use the pull down info alone. I've made a bunch of carts in the past, but I must have something wrong here:

    <form method="POST" action="http://ww4.aitsafe.com/cf/addmulti.cfm">;
    <div align="left">
    <p>
    <input type="hidden" name="return" value="www.skimorsefarm.com/buytickets.html">;
    <input type="hidden" name="userid" value="65393889">
    <input type="hidden" name="qty" value="1">
    <select size="1" name="productpr1[]">
    <option value="Choose Pass Option">Choose Pass Option</option>
    <option value="Early Bird Adult:100">Early Bird Adult - $100.00</option>
    <option value="Early Bird Senior:75">Early Bird Senior - $75.00</option>
    <option value="Early Bird Youth:75">Early Bird Youth - $75.00</option>
    <option value="Early Bird Couple:175">Early Bird Couple - $175.00</option>
    <option value="Early Bird Family:205">Early Bird Family - $205.00</option>
    </select>
    </p>
    <input type="hidden" name="product1[]" value="{br}User 1:,">
    <p>Add names of users associated with this pass:<br />
    <textarea name="product1[]" cols="40" rows="3"></textarea>
    </p>
    <p><br>
    <input type="hidden" name="product1[]" value="{br}User 2:,">
    <p>Add names of users associated with this pass:<br />
    <textarea name="product1[]" cols="40" rows="3"></textarea>
    </p>
    <p><br>
    <input type="hidden" name="product1[]" value="{br}User 3:,">
    <p>Add names of users associated with this pass:<br />
    <textarea name="product1[]" cols="40" rows="3"></textarea>
    </p>

    <input type="submit" value="Add to Cart">
    &nbsp;&nbsp;&nbsp;
    <INPUT TYPE="SUBMIT" VALUE="Show Cart">
    &nbsp;&nbsp;&nbsp;
    <input type="reset" value="Reset">



    Oct 24 2010 22:20:34

    #6

    Flaggfish

    Join date : 2008-09-23      Posts : 77

    I figured it out! It needed to be changed from addmulti.cfm to just add.cfm

    I didn't know about using {br} so thanks!
    Here's the one that works:
    <form method="POST" action="http://ww4.aitsafe.com/cf/add.cfm">;
    <div align="left">
    <table width="797" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td width="406"><input type="hidden" name="return" value="www.skimorsefarm.com/buytickets.html">;
    <input type="hidden" name="userid" value="65393889">
    <input type="hidden" name="qty1" value="1">
    <select size="1" name="productpr">
    <option value="Choose Pass Option">Choose Pass Option</option>
    <option value="Early Bird Adult:100">Early Bird Adult - $100.00</option>
    <option value="Early Bird Senior:75">Early Bird Senior - $75.00</option>
    <option value="Early Bird Youth:75">Early Bird Youth - $75.00</option>
    <option value="Early Bird Couple:175">Early Bird Couple - $175.00</option>
    <option value="Early Bird Family:205">Early Bird Family - $205.00</option>
    </select> </td>
    <td width="274">&nbsp;</td>
    <td width="117">&nbsp;</td>
    </tr>
    <tr>
    <td valign="top">Add names of users associated with this pass:</td>
    <td colspan="2">Add address, phone, email of users associated with this pass:</td>
    </tr>
    <tr>
    <td valign="top"><p>
    <input type="hidden" name="product[]" value="{br}User 1:," />
    <strong>User 1 </strong>name<br />
    <textarea name="product[]" cols="40" rows="1"></textarea>
    </p> </td>
    <td colspan="2" valign="top"> <p>
    <input type="hidden" name="product[]" value="{br}User 1 info:," />
    <strong>User 1</strong> address/phone/email<br />
    <textarea name="product[]" cols="40" rows="3"></textarea>
    </p> </td>
    </tr>
    <tr>
    <td valign="top"> <input type="hidden" name="product[]" value="{br}User 2:,">
    <strong>User 2</strong> name<br />
    <textarea name="product[]" cols="40" rows="1"></textarea></td
    ><td colspan="2" valign="top"> <input type="hidden" name="product[]" value="{br}User 2 info:,">
    <strong>User 2</strong> address/phone/email<br />
    <textarea name="product[]" cols="40" rows="3"></textarea>
    </td>
    </tr>

    <tr>
    <td valign="top"><input type="hidden" name="product[]" value="{br}User 3:,">
    User<strong> 3</strong> name<br />
    <textarea name="product1[]" cols="40" rows="1"></textarea> </td>
    <td colspan="2" valign="top"><input type="hidden" name="product[]" value="{br}User 3 info:,">
    <strong>User 3</strong> address/phone/email<br />
    <textarea name="product1[]" cols="40" rows="3"></textarea> </td>



    Oct 24 2010 23:07:44

    #7

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    The reason your addmulti version didn't work is you had qty instead of qty1.

    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.




    Oct 25 2010 00:37:53

    #8

    Flaggfish

    Join date : 2008-09-23      Posts : 77

    I tried switching to addmulti and even with the qty1 it was not working right: it only recorded the last text item, rather than all 3. Is the one I'm using now ok a good alternative? Seems to give me what I need in the cart.



    Oct 25 2010 00:44:59

    #9

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    Since it is only one product the way you have it now with add.cfm is really the best way for it to be. Oddly enough tho, your addmulti form had qty and your add form has qty1. You should change your add form to qty.


    Flaggfish said I tried switching to addmulti and even with the qty1 it was not working right: it only recorded the last text item, rather than all 3. Is the one I'm using now ok a good alternative? Seems to give me what I need in the cart.

    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.