Re: downside to passing "[]" characters in URL?

From: Date: Mon, 20 Nov 2000 21:20:43 +0000
Subject: Re: downside to passing "[]" characters in URL?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26334@lists.php.net to get a copy of this message
We've passed array structures around with the [] for awhile in PHP4 with no problem (can't seem to remember php3 anymore!) I've never seen problems with it, and I know it works in the 'popular' browsers (IE and NS on PC and Mac). Actually, I'm pretty sure we tested it on PC Opera as well, and it worked (if memory serves). Derek Sivers from CD Baby wrote: > Is there any downside to passing an array value like this, actually using > the [] characters? > > <a href="http://something.org?variable[value]=10"=e`·$ > > I see the web browser replaces it with "?variable%5Bvalue%5D=10" > > ... but it seems to work anyway. > > Can you think of any reason NOT to do this? > Is there a better way? Should I serialize it? > > Thanks! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- ========================== Michael Kimsal http://www.tapinternet.com PHP Training courses http://www.tapinternet.com/php

« previous php.general (#26334) next »