Re: replacing Carriage Return
| From: | Paul Warner | Date: | Tue, 11 Dec 2001 21:09:50 +0000 |
| Subject: | Re: replacing Carriage Return | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77349@lists.php.net to get a copy of this message | ||
\r\n is <cr><lf>
----- Original Message -----
From: "Kevin Stone" <kevin@helpelf.com>
To: <php-general@lists.php.net>
Sent: Tuesday, December 11, 2001 3:53 PM
Subject: Re: [PHP] replacing Carriage Return
> Could be "\r"? I'm not sure about this becuase I haven't tried it. I
know
> that \r is used as the return character in other OSs.
>
> -Kevin Stone
>
> ----- Original Message -----
> From: "phantom" <phantom@phantomcougar.com>
> To: <php-general@lists.php.net>
> Sent: Tuesday, December 11, 2001 1:31 PM
> Subject: [PHP] replacing Carriage Return
>
>
> > I solicit information from a text field and save the data in mysql to be
> > pulled out later and displayed as text on a webpage.
> >
> > However, Carrage Returns in the text field do not appear in the webpage
> > text.
> >
> > With ereg_replace() I can replace the Carriage Returns with "\n", so
> > what is this the character I need to find in the text field to replace?
> > chr(13) ???
> >
> > ereg_replace("chr(13)", "\n", $TextFieldData) ????????
> >
> > Thanks.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>