You are here: Re: strip new lines from text area? « All PHP « IT news, forums, messages
Re: strip new lines from text area?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация