|
Posted by worzel on 11/18/05 13:22
yes, thats what i thought - it wasn't working.
Here is the funny part - it was becuase the form filed i was running the
function on was not the text area field but some other one! What a daft git,
serves me right. No flippin wondr it never changed anything!!
thanks, steered my back on track
"J.O. Aho" <user@example.net> wrote in message
news:3u5mn9Fvk6maU1@individual.net...
> 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
Navigation:
[Reply to this message]
|