For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > August 2004 > Re: Subject: end of line









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Subject: end of line
Neil Smith [Mvp

2004-08-30, 8:57 am

http://uk.php.net/manual/en/function.nl2br.php

At 05:34 30/08/2004 +0000, you wrote:
>From: "michael" <michael@justustwo.com>
>Reply-To: michael@justustwo.com
>To: <php-db@lists.php.net>
>CC:
>Message-ID: < e713df6e3d314e229c73b7313e6ac672@justust
wo.com>
>Subject: end of line
>
>Hi. I'm trying to find a simple way to allow a client to update a "notes"
>page on her site whenever she wants. I created a form which allows her to
>save a few paragraphs to a mysql table. What I want to do, though, is
>write her paragraphs to an html page so others can see her words. Is there
>a way to replace newlines with <p> tags, so that her carriage returns show
>up as separate paragraphs when I write it to html? Also, she uses a mac -
>doesn't mac register newlines and carriage returns different than windows
>or unix? Thanks in advance.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com