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 =
On Wednesday 01 October 2003 01:06, Graeme McLaren wrote:
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:
Probably it's because you're trying to replace spaces with +. Swap your first
2 parameters.
$AddressLine1 =
the
part up to the first space is displayed back to the user.
Any ideas?
Cheers again,
Graeme :)
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 7:12 PM
Subject: Re: [PHP-DB] Replacing + with question
On Wednesday 01
From: Graeme McLaren [EMAIL PROTECTED]
Jason, thank you for reply. I tried switching the 1st 2 parameters in the
str_replace function so that it now looks like this:
$AddressLine1 = urlencode($AddressLine1);
$AddressLine1 = str_replace(+, , $AddressLine1);
Unfortunately as I am now