Getting results from Select Multiple HTML tag
| From: | Tyler Longren | Date: | Tue, 06 Jan 2004 04:05:47 +0000 |
| Subject: | Getting results from Select Multiple HTML tag | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173816@lists.php.net to get a copy of this message | ||
Hi,
http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple
I read that. Doesn't work in php since the whole register_globals
thing. Now, when I get the results from a form, they're all in a
$_POST[] array. Example.
When I have a <select name="test" MULTIPLE>
I would have to access the values of the "test" field like this:
count($_POST['test']);
But since I have to have the [] in the name="<select name="test[]"
MULTIPLE>" ()part, I get parse errors when trying to read it:
ex: count($_POST['test[]']);
That doesn't even look right. Anyone understand what I'm tryin to get
at? Any help would be great.
Best Regards,
--
Tyler Longren
J.D. Web Services, L.C.