Reply to Re: accessing arrays

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация