note 29833 added to reserved.variables

From: Date: Wed, 26 Feb 2003 12:22:01 +0000
Subject: note 29833 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-44551@lists.php.net to get a copy of this message
There is a problem when getting data from $_GET or $_POST: when receiving parameters from a list box, if more than one element was selected you will only get the last one, because $_GET and $_POST are associative arrays. To handle the problem you must decode $_SERVER[ 'QUERY_STRING' ], which means you are confined to using GET in forms. It would be nice if this problem could be solved by having $_GET and $_POST have array values, such as: $_POST[ 'param' ] = array( 'value 1', value 2', ... 'value n' ); -- http://www.php.net/manual/en/reserved.variables.php http://master.php.net/manage/user-notes.php?action=edit+29833 http://master.php.net/manage/user-notes.php?action=delete+29833 http://master.php.net/manage/user-notes.php?action=reject+29833

« previous php.notes (#44551) next »