Page 1 of 1

Newbie: problems with argument separator

Posted: Tue Nov 19, 2002 4:29 am
by mueller53
Hi,

I have a problem with the argument separator in PHP.
I use the default argument separator in the php.ini which is "&".

Now, I will get the adress of a company from a MySQL
database (e.g. adress.php?company=name). What can I do if the company name includes a "&" (e.g. adress.php?company=C&C). I changed the name and tried to use a "+" instead of "&" (C+C), but it doesn't work either.

Can anybody help me?

Posted: Tue Nov 19, 2002 6:07 am
by volka
using & as seperator is not php- but http-specific.
take a look at http://www.php.net/manual/en/function.urlencode.php