Community Forums 

Main Content

Re:using message_title[]

    Aug 12 2010 12:23:35

    #1

    pcguy

    Join date : 2008-09-18      Posts : 136

    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>