[ciapug] Formatting with line breaks...
Chris Hettinger
ciapug@cialug.org
Mon, 15 Dec 2003 08:28:06 -0600
Hmm, this didn't seem to work either.
$note =3D "*** Generate from Web Form Submission ***" . chr(13) =
. chr(10)
. "testing note formatting.";
Still writes a single line. hrmmm...=20
*still trying*
-----Original Message-----
From: David Champion [mailto:dave@visionary.com]
Sent: Friday, December 12, 2003 4:56 PM
To: ciapug@cialug.org
Subject: Re: [ciapug] Formatting with line breaks...
You're thinking of a different issue, Jerry. That's addressed with the=20
nl2br() function.
He needs to actually insert :
$x =3D "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 =3D chr(13) . chr(10);
-dc
Jerry Weida wrote:
> Are you checking the source? Text-style line breaks won't display in=20
> a browser, but they will show up in the source.
>
> Chris Hettinger wrote:
>
>> 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=20
>> first, and do some light formatting like line breaks...
>>
>> $note =3D "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 <?=3D =
$note;=20
>> ?> ... It displays but is not including the line breaks.
>
_______________________________________________
ciapug mailing list
ciapug@cialug.org
http://cialug.org/mailman/listinfo/ciapug
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.'