Or
$notes = preg_replace("/(\r)?\n/"," ",$_POST['notes']);
in case it's the \r that's actually messing you up and not the \n?
---John Holmes...
----- Original Message -----
From: "John Wards" <[EMAIL PROTECTED]>
To: "Joshua E Minnie" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, December 05, 2002 10:48 AM
Subject: Re: [PHP] Newline charactes causing problems
On Thursday 05 Dec 2002 3:48 pm, Joshua E Minnie wrote:
> A load of stuff..........
I just read the fist few paragraphs and got bored....;-)
but....
Have you tried doing a str_replace for \n which is new line? just replate it
with a blank string
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php