Here is how i do it, and it works:

$tmp_desc = str_replace("\t", " ", str_replace("\n", " ", str_replace("\r",
" ", $desc)));
$desc = $tmp_desc;

\t for stipping TABs also

----- Original Message -----
From: "Sam" <[EMAIL PROTECTED]>
Subject: [PHP] Textarea returns causing havoc


> Hi all,
> into this:
>
> Hi my name is Sam Rose
>
> I have tried
> nl2br()
> str_replace()



-- 
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]

Reply via email to