On 18-Jul-2001 Paul A. Procacci wrote:
> Hey all,
> I tried passing an argument to a php script that had a plus sign (+)
> in one of the arguments. Observe the following:
>
> <sciptname>
> http://altavista.com/sites/search/web?q=task+management&pg=q&kl=XX
>
> As it turns out the argument gets split into two seperate arguments, but
> I would like to keep it as one argument. Does anyone know how to
> accomplish this.
No, it is one arg q='task management'; the plus is interpreted as a space.
If you want to keep the (+) symbol use web?q=task%2bmanagement& ...
also look at urlencode/decode() functions.
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]