Re: passing object elements in urls
| From: | Darryl Friesen | Date: | Tue, 06 Feb 2001 17:45:22 +0000 |
| Subject: | Re: passing object elements in urls | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-6431@lists.php.net to get a copy of this message | ||
> Got a slight problem. I'm attempting to pass a number of variables from
> one form to another. The problem occurs when one of the object elements
> contains more than one word.
[snip]
> Any idea how to pass object elements with spaces in a URL?
Try encoding the spaces as %20 (the hex value for a space). There's
probably a PHP function to do this for you (and one to do the reverse) -- I
haven't looked.
You could try using a + instead of a space too.
- Darryl
----------------------------------------------------------------------
Darryl Friesen, B.Sc., Programmer/Analyst Darryl.Friesen@usask.ca
Education & Research Technology Services, http://gollum.usask.ca/
Department of Computing Services,
University of Saskatchewan
----------------------------------------------------------------------
"Go not to the Elves for counsel, for they will say both no and yes"