Re: Spaces in Parameters
| From: | Matthew Leverton | Date: | Thu, 22 Jun 2000 15:00:24 +0000 |
| Subject: | Re: Spaces in Parameters | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2635@lists.php.net to get a copy of this message | ||
Look under the String Functions:
string rawurlencode (string str)
Is what you want to use. In the next page,
you will need to de-encode it
--
Matthew Leverton - matthew@aeroinc.net -
http://www.allegro.cc
-----Original Message-----
From: Phillip S. Baker <phillip@wordsandimages.com>
To: php-general@lists.php.net <php-general@lists.php.net>
Date: Thursday, June 22, 2000 9:55 AM
Subject: [PHP-GENERAL] Spaces in Parameters
>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.
>
>Thanks
>--
>
>Phillip S. Baker
>
>phillip@wordsandimages.com
>Words & Images, Inc.
>1535 Seabright Avenue, Suite 100, Santa Cruz, CA 95062
>Direct Line (831) 420-2641 / Fax (831) 458-0808
>