Newbie: problems with argument separator

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mueller53
Forum Newbie
Posts: 1
Joined: Tue Nov 19, 2002 4:29 am

Newbie: problems with argument separator

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

using & as seperator is not php- but http-specific.
take a look at http://www.php.net/manual/en/function.urlencode.php
Post Reply