Re: replacing Carriage Return
| From: | Mike Eheler | Date: | Tue, 11 Dec 2001 22:08:56 +0000 |
| Subject: | Re: replacing Carriage Return | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77360@lists.php.net to get a copy of this message | ||
Could this be solved in any way by using nl2br()?
Mike
Phantom wrote:
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.