Replacing "+" with " " question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 :)

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux