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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]