[PHP] Dumb POST Array question

2002-11-25 Thread David Russell
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]
Etc

Or something else?

Thanks

David Russell
IT Support Manager
Barloworld Optimus (Pty) Ltd
Tel: +2711 444-7250 
Fax: +2711 444-7256
e-mail: [EMAIL PROTECTED]
web: www.BarloworldOptimus.com



smime.p7s
Description: application/pkcs7-signature


Re: [PHP] Dumb POST Array question

2002-11-25 Thread Jason Wong
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: $valuebr;
  }


-- 
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!
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php