Re: Dumb POST Array question

From: Date: Mon, 25 Nov 2002 09:17:12 +0000
Subject: Re: Dumb POST Array question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125904@lists.php.net to get a copy of this message
On Monday 25 November 2002 16:48, David Russell wrote: > Hi all, > > I have a multiple select called Consultants[] In one page. > > On the target page, how would I reference it? Would it be: > > $_POST['Consultants'][0] > $_POST['Consultants'][1] If in doubt, print it out (TM): print_r($_POST); The best way to do it (IMHO) is to: foreach ($_POST['Consultants'] as $key => value) { print "$key: $value<br>"; } -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Make it myself? But I'm a physical organic chemist! */

« previous php.general (#125904) next »