RE: Question: arrays and form elements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux