Problem with array variables in forms

From: Date: Tue, 18 Feb 2003 08:06:56 +0000
Subject: Problem with array variables in forms
Groups: php.general 
Request: Send a blank email to php-general+get-135964@lists.php.net to get a copy of this message
G'day, Our web-host just upgraded to PHP v4.2.3 (from v4.1.2) and broke all of our forms that use array variables. It appears that when the URL contains square brackets (i.e. %5B and %5D instead of [ and ]) then PHP doesn't parse the variables correctly. For example, <http://www.offloadonline.com/test.php?personal[name]=john&personal[email]=john%40blah.com> works (you might need to paste the URL into your browser) but <http://www.offloadonline.com/test.php?personal%5Bname%5D=john&personal%5Bemail%5D=john%40blah.com> fails. Can anyone suggest a workaround? Thanks, Chris.

« previous php.general (#135964) next »