NYCPHP Meetup

NYPHP.org

[nycphp-talk] Textarea formatting

Felix Shnir felix.shnir at gmail.com
Thu Oct 19 13:24:56 EDT 2006


Well, if you are talking about displaying in HTML then you should replace
\n\r with a <br>

Felix.


On 10/19/06, Ben Sgro (sk) <skyline at publicmine.com> wrote:
>
> Hello all,
>
> I have a textarea field that can .. store text.
>
> I'm using it to save emails for example w/a form.
> I grab the posted data and call addslashes( ) then stick it into the
> database, varchar(1024). (this is a calendar app for my own use).
>
> Now, when I pull it out, its not formatted and displaying it on the screen
> is just one long line.
>
> How can I keep newlines/r and formatting from the text that is input into
> the textarea box?
>
> Thanks.
>
> - Ben
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20061019/2d4055ec/attachment.html>


More information about the talk mailing list