Forum Moderators: coopster & phranque

Message Too Old, No Replies

Line Break in Emailed Form

         

hexdj

8:21 pm on Feb 12, 2007 (gmt 0)

10+ Year Member



I have a form that gets validated via Javascript and then sent as plain text via email, for example I have a total that I sent like this (my form.txt):

Item List: [itLst]

In my form itLst is a hidden field, which adds a value at the end everytime a checkbox is checked.

My question is, is there a way to insert line breaks thru the TXT file so the email is more readable? maybe I have to do this in Javascript? I have no clue

Or maybe an easier question would be how do I format text that is sent thru a txt cgi email?

Thanks

hexdj

8:59 pm on Feb 12, 2007 (gmt 0)

10+ Year Member



Never mind, found it:

Just add this line to the beggining of the TXT file:
Content-Type: text/html; charset="iso-8859-1"

and then I can just add the right tags as in HTML