replacing Carriage Return

From: Date: Tue, 11 Dec 2001 20:31:55 +0000
Subject: replacing Carriage Return
Groups: php.general 
Request: Send a blank email to php-general+get-77345@lists.php.net to get a copy of this message
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.

« previous php.general (#77345) next »