Community Forums 

Main Content

Need some help please

    Dec 03 2009 03:52:38

    #1

    pcguy

    Join date : 2008-09-18      Posts : 130

    I have this script that caculates everying on my page and when you click it the total is displayed. That part works fine

    I havent included the calculation script becase that is not my issue

    Here is the script and I do need to use pay.cfm

    I want to make it so when the items go into the cart it will look like this

    Mens T Shirt
    Small
    Red
    However at the moment they look like this

    Mens T Shirt
    ,Small
    ,Red

    How can I remove that comma.


    <form action="http://ww10.aitsafe.com/cf/pay.cfm"; method="post">
    <input type="hidden" name="userid" value="C0204876">

    <input type="text" name="inv_name">Name
    <br>
    <input type="text" name="inv_addr1">Address
    <br>
    <input type="text" name="tel">Phone
    <br>
    <input type="text" name="email">Email
    <br><br>
    <b>Make Your Selections Below</b><br><br>

    <INPUT TYPE="HIDDEN" NAME="product1[]" VALUE=" Mens T Shirt {br}">
    <INPUT TYPE="HIDDEN" NAME="price1" VALUE="18.50">
    Mens T Shirt <b>$18.50</b><br>

    <select name="product1[]">
    <option value="Small {br}">Small</option>
    <option value="Medium {br}">Medium</option>
    <option value="Large {br}">Large</option>
    <option value="X-Large {br}">X-Large</option>
    </select>

    <select name="product1[]">
    <option value="Red {br}">Red</option>
    <option value="Pink {br}">Pink</option>
    <option value="Yellow {br}">Yellow</option>
    <option value="Black {br}">Black</option>
    </select>

    <select name="qty1" id="PROD_18.50" value="" onChange="CalculateTotal(this.form)">
    <option VALUE="0">0</option>
    <option VALUE="1">1</option>
    <option VALUE="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option VALUE="5">5</option>
    <option VALUE="6">6</option>
    <option value="7">7</option>
    <option value="8">8</option>
    <option VALUE="9">9</option>
    <option value="10">10</option>
    </select>
    <br> <br>

    Comments:
    <input name=message_title1[] type=hidden id="message_title1[]" value="additional" />
    <textarea cols=35 rows=4 name=message[]6></textarea>
    <br><br>
    <strong>Your Total Is:</strong>
    <input type="text" name="TOTAL" size="10" onFocus="this.form.elements[0].focus()">
    <br>
    <input type="submit" value="Order Selection">

    <input type="reset" value="Reset">

    </FORM>



    Dec 03 2009 05:21:25

    #2

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    Put a comma after the {br}. A comma cancels out a comma. {br}, I don't think you need a {br} in the color menu.

    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.




    Dec 03 2009 05:30:42

    #3

    pcguy

    Join date : 2008-09-18      Posts : 130

    Thankyou Debbie,

    I was just returning to say I got it worked out and I have now also removed the extra {br} as you suggested.

    On another note in a text area can you get it to put details on different lines.

    for example I changed the address in the above code to be a text area so you can enter your address like this

    My Name
    12 Name Street
    China

    Can it be made to appear in the cart in the same manner or not.

    Thanks



    Dec 03 2009 06:22:10

    #4

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    Never played with the message field so this is a total guess. Why not try a hidden field with the {br} in between each line of the address?

    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.