note 28250 added to function.str-replace

From: Date: Tue, 07 Jan 2003 10:32:30 +0000
Subject: note 28250 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-41779@lists.php.net to get a copy of this message
I was trying to remove newlines from a textarea input (result of failed submission of parent form - JS verification not possible in this situation) to send back to the textarea via javascript (due to the fact that setting the value in the textarea tag does not work) and had a hard time figuring it out. If anyone cares, try replacing: "%0D%0A" which is how I found it(changed my POST method to GET) and tracked it down in the address bar of my browser. Hope this helps, I sure wish someone else had posted it earlier! -Rit -- http://www.php.net/manual/en/function.str-replace.php http://master.php.net/manage/user-notes.php?action=edit+28250 http://master.php.net/manage/user-notes.php?action=delete+28250 http://master.php.net/manage/user-notes.php?action=reject+28250

« previous php.notes (#41779) next »