Posted by J.O. Aho on 11/18/05 11:54
worzel wrote:
> How do i strip new lines and/or carriage return from a html input text area?
>
> can't seem to make the str_replace() or trim() to work at all!
>
>
$string=eregi_replace("\n\r","",$string);
www.php.net/manual/en/function.eregi-replace.php
There may be better options.
//Aho
[Back to original message]
|