[PHP] Re: replacing Carriage Return

2001-12-17 Thread Phillip Oertel
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. they're not supposed to show up in HTML ! you need to replace

[PHP] Re: replacing Carriage Return

2001-12-11 Thread Mike Eheler
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. > > Wit

[PHP] Re: replacing Carriage Return

2001-12-11 Thread J Smith
You could use "\r\n" (or combinations thereof) as others have mentioned, but just to save you some frustration, make sure you don't put quotation marks around the chr(13) if that regex, otherwise you'll be looking for the literal string "chr(13)" and not what you'd expect, i.e. what the functi