You are here: Re: Why is this not stripping the newlines/returns from my HTML text area? « All PHP « IT news, forums, messages
Re: Why is this not stripping the newlines/returns from my HTML text area?

Posted by worzel on 11/18/05 14:26

Sorry, mistake on that first line, here is actual:

$address = eregi_replace("\n\r","",$_POST['address']);

// other vars here

$body .= $br."Address: " . $address;

// more construction of emails body here

mail("$to","$subject","$body" );

// and off goes the email no problem - but line breaks still in boy fo rsoem
resaon!

"worzel" <asda@sdarta.com> wrote in message
news:437dbeed$0$22513$5a62ac22@per-qv1-newsreader-01.iinet.net.au...
> sorry for similar / dupe - thought i confused the issue first time
>
> $string=eregi_replace("\n\r","",$_POST['address']);
>
> Why is this not stripping the newlines/returns from my HTML text area? How
> do i do this - do in jsp easy, asp very easy, but in php it gives me
> headache!
>
> my text are is wrap="soft" (and testing with ie in which this default
> anyway) i cannot see nothing wrong -even when i try str_replace() and
> other methods.
>

 

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

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