Forum Moderators: open

Message Too Old, No Replies

form output format - new line issue

         

jackdack

8:18 am on Sep 28, 2005 (gmt 0)

10+ Year Member



I'm using a form which sends it's output to an email. The form output does not recognize the new lines added between text. It delivers the entire message as a single paragraph (when it should contain multiple lines and space between some lines).

Is there a setting to make your form output include new lines etc.?

Thanks

BlobFisk

8:49 am on Sep 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi jackdack,

Are you telling your form-mail processor to use a Text or HTML MIME-Type?

If you sending them as HTML then you can use <br> or <p> tags to format you message. If you are using text then try \n to force a line break or a line break command for whatever server side language you're using (eg. vbCrLf in ASP).

HTH

jackdack

9:31 am on Sep 28, 2005 (gmt 0)

10+ Year Member



Thanks BlobFisk. If I enter html to the form the output is fine (new lines, and bold/other formatting). It's great this works, but it's not very practical as I have to write html to write a simple message. Is there a way to configure the form properties so it's automatically treated/converted to html? As for settings, how do I tell?
THank you