Re: Spaces in Parameters

From: Date: Thu, 22 Jun 2000 15:02:30 +0000
Subject: Re: Spaces in Parameters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2636@lists.php.net to get a copy of this message
At 07:53 AM 6/22/00 -0700, Phillip S. Baker wrote:
Greetings, I am having a little trouble with Netscape. There are some parameters that I am passing in a url to use later in a script. These parameters may or may not have spaces in them. IE automatically replaces the spaces with %20 to make the parameter work, however Netscape does not do this. So in IE it looks like member%20name and works correctly while NN passed member name and it does not work Now this is data drawn from a database. How can I make it so that data drawn from the database when it is passed to the url automatically adds the %20 so it will work in NN.
Hi Phillip, Use the urlencode function. HTH Zak Greant Creative Director Nucleus Information Service Inc. "A camel is a horse designed by a committee." - Alex Issigonis (Designer of the Austin Mini)

« previous php.general (#2636) next »