Replacing "+" with " " question

From: Date: Tue, 30 Sep 2003 17:06:00 +0000
Subject: Replacing "+" with " " question
Groups: php.db php.db 
Request: Send a blank email to php-db+get-30773@lists.php.net to get a copy of this message
Hi all I want the contents of a variable to be returned to the user without the + symbols, how do I do that? This is what I have so far by the string replace function doesn't replace the spaces and display bla bla bla as I want: $AddressLine1 = urlencode($AddressLine1); $AddressLine1 = str_replace(" ", "+", $AddressLine1); echo "First Line Of Address: <BR> <input type=text Name=AddressLine1 value=$AddressLine1><BR><BR>"; Cheers, Graeme :)

« previous php.db (#30773) next »