RE: [PHP] Question: arrays and form elements

From: Date: Thu, 30 Dec 2004 13:18:38 +0000
Subject: RE: [PHP] Question: arrays and form elements
Groups: php.general 
Request: Send a blank email to php-general+get-205352@lists.php.net to get a copy of this message
[snip] Generally, when I set up a form where, for example, I'll be taking multiple selections from a list I would set the variable / element name as "myvar[]". So I have the brackets [] after the variable name to make it an array. What I want to know is there a way to get around the use of this syntax ? If the variable name was just "myvar" (no brackets) is there a way for me to still grab all the selections and put them into an array ? [/snip] Nope, this is the method for doing what you say.

« previous php.general (#205352) next »