[ciapug] Formatting with line breaks...
Jerry Weida
ciapug@cialug.org
Mon, 15 Dec 2003 08:37:34 -0600
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Where are you writing this output to? A file? A browser?<br>
<br>
Chris Hettinger wrote:<br>
<blockquote type="cite"
cite="midF1E03A25DAB40840B4AE300849242D05017C0A36@encmail.encompass.enc">
<pre wrap="">Hmm, this didn't seem to work either.
$note = "*** Generate from Web Form Submission ***" . chr(13) . chr(10)
. "testing note formatting.";
Still writes a single line. hrmmm...
*still trying*
-----Original Message-----
From: David Champion [<a class="moz-txt-link-freetext" href="mailto:dave@visionary.com">mailto:dave@visionary.com</a>]
Sent: Friday, December 12, 2003 4:56 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:ciapug@cialug.org">ciapug@cialug.org</a>
Subject: Re: [ciapug] Formatting with line breaks...
You're thinking of a different issue, Jerry. That's addressed with the
nl2br() function.
He needs to actually insert :
$x = "text " . chr(13) . chr(10);
I don't recall that there's a constant for CRLF, like VB's vbCRLF... but
you could put on in your code, i.e.
$_CRLF = chr(13) . chr(10);
-dc
Jerry Weida wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Are you checking the source? Text-style line breaks won't display in
a browser, but they will show up in the source.
Chris Hettinger wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I am trying to insert into a db field a note entry which will contain
the details of a web form, but I have to build that long note entry
first, and do some light formatting like line breaks...
$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.
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
ciapug mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ciapug@cialug.org">ciapug@cialug.org</a>
<a class="moz-txt-link-freetext" href="http://cialug.org/mailman/listinfo/ciapug">http://cialug.org/mailman/listinfo/ciapug</a>
CONFIDENTIALITY NOTICE: This communication, including any attachment, may contain confidential information and is intended only for the individual or entity to whom it is addressed. Any review, dissemination, or copying of this communication by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email, delete and destroy all copies of the original message.'
_______________________________________________
ciapug mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ciapug@cialug.org">ciapug@cialug.org</a>
<a class="moz-txt-link-freetext" href="http://cialug.org/mailman/listinfo/ciapug">http://cialug.org/mailman/listinfo/ciapug</a>
</pre>
</blockquote>
</body>
</html>