Re: passing object elements in urls

From: Date: Tue, 06 Feb 2001 18:34:45 +0000
Subject: Re: passing object elements in urls
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-6433@lists.php.net to get a copy of this message
On Tue, Feb 06, 2001 at 05:46:25PM +0000, Darryl Friesen wrote: > > 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. Yes there are: urlencode() and urldecode() http://www.php.net/manual/en/function.urlencode.php http://www.php.net/manual/en/function.urldecode.php Paul > > 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" > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- ----------------------------------------------------------------- Paul Cooper | Tel: 0121 331 7858 Senior Programmer and Database Engineer | Fax: 0121 687 7859 UCEcom | mailto:pgc@ucecom.com University of Central England | http://www.ucecom.com Birmingham, B4 7DX | -----------------------------------------------------------------

« previous php.db (#6433) next »