Question: arrays and form elements

From: Date: Thu, 30 Dec 2004 11:48:09 +0000
Subject: Question: arrays and form elements
Groups: php.general 
Request: Send a blank email to php-general+get-205348@lists.php.net to get a copy of this message
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 ? Hope this question is clear. Thank you Stuart

« previous php.general (#205348) next »