accessing arrays
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

accessing arrays

From: Rainman <name@yourdomain.com>
Date: Wed Nov 23 2005 - 00:09:40 CET

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)??

Mark
Received on Sat Dec 3 04:22:18 2005