Community Forums 

Main Content

using message_title[]

    Aug 11 2010 10:39:13

    #1

    pcguy

    Join date : 2008-09-18      Posts : 130

    When using the syntax message_title[] and the details go into the cart they all go on one line.
    Is there a way to have a new line for each item in the message area or not



    Aug 11 2010 13:01:38

    #2

    anon

    Join date : 2008-09-18      Posts : 488

    Have you tried putting a {br} where you want a new line?



    Aug 11 2010 13:28:58

    #3

    pcguy

    Join date : 2008-09-18      Posts : 130

    yes I have, ,mybe I have it in the wrong place

    here is the code snipped from the table I am using. I have about 5 of these in my current table.

    tr>
    <td><p align="left">DOB:</p></td>
    <td valign="top"><input type="hidden" name="message_title[]" value="D.O.B" />
    <input type="text" name="message[]" size="30" {br}/></td>
    </tr>

    is the {br} in the correct place or not



    Aug 11 2010 14:43:33

    #4

    GT

    Join date : 2008-09-18      Posts : 3207

    Try: name="message_title[]{br}"

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

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




    Aug 11 2010 22:05:43

    #5

    pcguy

    Join date : 2008-09-18      Posts : 130

    No still no go GT.

    when it is all added to the cart the message area is ok and on a separate line but it's when the html email arrives it is all in the one line



    Aug 11 2010 23:52:22

    #6

    anon

    Join date : 2008-09-18      Posts : 488

    I think it would have to be part of the value, like:

    <td valign="top"><input type="hidden" name="message_title[]" value="D.O.B.{br}" />
    <input type="text" name="message[]" size="30" />
    </td>



    Aug 12 2010 08:23:22

    #7

    pcguy

    Join date : 2008-09-18      Posts : 130

    Hi Anon

    no luck on that one either

    Is there any other way to add additional information into the cart so when someone places an order there is about 6 or so just text only fields all on different lines.
    It doesnt matter if there are up in the cart contents as long as it shows the information



    Aug 12 2010 12:23:35

    #8

    pcguy

    Join date : 2008-09-18      Posts : 130

    here is the full code I am using if you want to test it all and see if you can get it to work correctly.

    When you add the items to the cart it is perfect there. The issue is what arrives in the email the customer message is all on one line. What would be nice it it can have a different line for each item in the customer message.

    <form method="post" action="http://ww10.aitsafe.com/cf/pay.cfm">;

    <input type="hidden" name="userid" value="C0204876" />


    <table border="0" cellpadding="3" cellspacing="0">
    <tr>
    <td><p align="left">Name:</p></td>
    <td valign="top"><input type="text" name="inv_name" size="30" /></td>
    </tr>

    <tr>
    </tr>
    <td><p align="left">DOB:</p></td>
    <td valign="top"><input type="hidden" name="message_title[]" value="D.O.B" />
    <input type="text" name="message[]{br}," size="30" /></td>

    </tr>
    <tr>
    <td><p align="left">Sex:</p></td>
    <td valign="top"><input type="hidden" name="message_title[]" value="Sex" />
    <input type="text" name="message[]" size="30" /></td>
    </tr>

    <tr>
    <td><p align="left">ASA #:</p></td>
    <td valign="top"><input type="hidden" name="message_title[]" value="ASA#" />
    <input type="text" name="message[]" size="30" /></td>
    </tr>
    <tr>
    <td><p align="left">Club:</p></td>
    <td valign="top"><input type="hidden" name="message_title[]" value="Club" />
    <input type="text" name="message[]" size="30" /></td>
    </tr>
    <tr>
    <td><p align="left">Age On Day:</p></td>
    <td valign="top"><input type="hidden" name="message_title[]" value="Age on Day" />
    <input type="text" name="message[]" size="30" /></td>
    </tr>
    <tr>
    <td><p align="left">Phone:</p></td>
    <td valign="top"><input type="text" name="tel" size="30" /></td>
    </tr>
    <tr>
    <td><p align="left">E-mail:</p></td>
    <td valign="top"><input type="text" name="email" size="30" /></td>
    </tr>
    <tr>
    <td colspan="2"><p align="left">Notes:<br />
    <input type="hidden" name="message_title[]" value="Notes" />
    <textarea name="message[]" rows="5" cols="30" /></textarea></p>

    </td>
    </tr>
    </table>

    <hr>

    <table border="0" cellpadding="5" cellspacing="1">
    <tr>
    <td colspan="3">
    <b>Number of Swims</b><br /><i></i>
    </td>
    <td colspan="3"><b>Coach Passes</b><br /><i>(max 2 per club)</i></td>
    </tr>
    <tr>
    <td bgcolor="#F7F7F7"><p align="left"></p></td>
    <td bgcolor="#F7F7F7">$4.25</td>

    <td bgcolor="#F7F7F7">
    <input type="text" name="qty1" size="2" value="0" />
    <input type="hidden" name="product1" value="Number of Swims" />
    <input type="hidden" name="price1" value="4.25" />
    </td>
    <td bgcolor="#F7F7F7"><p align="left"></p></td>
    <td bgcolor="#F7F7F7">$8.00</td>
    <td bgcolor="#F7F7F7">
    <input type="text" name="qty2" size="2" value="0" />
    <input type="hidden" name="product2" value="Number of Coach Passes" />
    <input type="hidden" name="price2" value="8.00" />
    </td>
    </tr>
    </table>
    <p align="left">
    <input type="submit" value="Submit" />
    <input type="reset" value="Reset" />
    </p>
    </form>



    Aug 12 2010 13:34:23

    #9

    GT

    Join date : 2008-09-18      Posts : 3207

    Works for me, each line is new...

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

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




    Aug 12 2010 22:10:10

    #10

    pcguy

    Join date : 2008-09-18      Posts : 130

    Hi GT,

    yes it does add them on each line in the cart but when the actual email arrives it is just one big mess on the one line it does not reflect what is shown in the cart from the start.



       1   |   2      »