Re: [PHP] Re-inserting newlines

2005-06-24 Thread Jochem Maas
Philip Thompson wrote: On Jun 23, 2005, at 4:13 PM, Richard Lynch wrote: ... Well, that was a mouthful. I actually am using a Mac and it showed \r \n I reckon you could edit together a nice fat 700 page book on PHP just by scraping posts made by Richard :-) ... every other month ;-) to

Re: [PHP] Re-inserting newlines

2005-06-23 Thread Philip Thompson
On Jun 23, 2005, at 4:13 PM, Richard Lynch wrote: On Thu, June 23, 2005 11:09 am, Philip Thompson said: On Jun 23, 2005, at 12:20 PM, John Nichel wrote: Philip Thompson wrote: Anyone know how/what to replace the \r\n in the textarea to that it shows up correctly with the actual newlines

Re: [PHP] Re-inserting newlines

2005-06-23 Thread Richard Lynch
On Thu, June 23, 2005 11:09 am, Philip Thompson said: > On Jun 23, 2005, at 12:20 PM, John Nichel wrote: > >> Philip Thompson wrote: >> >>> Anyone know how/what to replace the \r\n in the textarea to that >>> it shows up correctly with the actual newlines, not the \r\n??? http://php.net/stripslas

Re: [PHP] Re-inserting newlines

2005-06-23 Thread John Nichel
Philip Thompson wrote: That's the thing, I'm not inserting \r\n at all. When filling in the form, I hit "Enter" to go to the next line in the textarea. When I pull the original data I do: $textarea = mysql_real_escape_string($_POST["textarea"], $connection); if ($error) { // somehow re

Re: [PHP] Re-inserting newlines

2005-06-23 Thread Philip Thompson
On Jun 23, 2005, at 12:20 PM, John Nichel wrote: Philip Thompson wrote: Anyone know how/what to replace the \r\n in the textarea to that it shows up correctly with the actual newlines, not the \r\n??? You shouldn't need \r\n. \n should work just fine. How are you 'inserting' the newlin

Re: [PHP] Re-inserting newlines

2005-06-23 Thread John Nichel
Philip Thompson wrote: Anyone know how/what to replace the \r\n in the textarea to that it shows up correctly with the actual newlines, not the \r\n??? You shouldn't need \r\n. \n should work just fine. How are you 'inserting' the newlines? Single quoted string? -- John C. Nichel ÜberGeek

[PHP] Re-inserting newlines

2005-06-23 Thread Philip Thompson
Hi all. I have searched for a way to figure out this problem, but nothing is popping up. Here's the scenario: I have a form which I will write to a database - so I escape the form content. I have a in the form. Obviously, people can type whatever they want to in this textarea, including