[ciapug] Formatting with line breaks...
Tim Perdue
ciapug@cialug.org
Mon, 15 Dec 2003 08:30:04 -0600
Chris Hettinger wrote:
>>> $note = "Generate from Web Form Submission \r\n"
>>> . "testing note formatting. \r\n";
>>>
>>>How ever this isn't working as I would have suspected. For testing it
>>>as I build it I am just echoing it out to the browser with <?= $note;
>>>?> ... It displays but is not including the line breaks.
Are you wrapping <pre></pre> around it so it displays with breaks in HTML?
I've never used the chr(13) thing before - the \n always works for me.
You can also do this:
$note = "Generate from Web Form Submission
testing note formatting.
";
Tim