A simple question, however it's urgent
| From: | Andre Polykanine | Date: | Mon, 17 May 2010 12:26:14 +0000 |
| Subject: | A simple question, however it's urgent | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-305277@lists.php.net to get a copy of this message | ||
Hello everyone,
Just can't imagine what happens. There is the simplest function in the
world:
function LineBreaks ($str) {
$what=array("\r\n", "\n", "\r");
$with=array("<br>");
$str=str_replace($what, $with, $str);
return $str;
}
And... it does work on one site and doesn't on another. Same hosting
provider, same settings, all the same.
When I call
$_POST['uwork']=LineBreaks($_POST['uwork']);
Nothing happens. Yes, it does see \r\n's but it doesn't replace them
with <br>'s. Tried built-in nl2br(), but no result...
Thank you!..
--
With best regards from Ukraine,
Andre
Http://oire.org/ - The Fantasy blogs of Oire
Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org
Yahoo! messenger: andre.polykanine; ICQ: 191749952
Twitter: http://twitter.com/m_elensule