Posted by Justin Koivisto on 11/23/05 01:39
Rainman wrote:
> I'm sure there is an FAQ on this somewhere, but I couldn't find one. I'm
> sure a responder will clue me in.
>
> my URL is: mypage.php?var=2&var=4&var=5
>
> print_r($_GET);
>
> gives me: 5
>
> instead of
>
> Array (
> [var] => 2
> [var] => 4
> [var] => 5
> )
>
> I tried:
>
> print_r($get[var]);
>
> but this gave me just 5 also. How do I access multiple values (from a
> multi-select list)??
Name the list "var[]" instead of "var"...
--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
[Back to original message]
|