not quite ... 
if the form elements are (e.g) <input name='array[0]' ...>, etc.
then you need $_POST["array"][0] to refer to the element
(just like any other array of arrays in PHP).

but you're right about count($_POST["array"]) ...
and foreach ($_POST["array"] as $key=>$value), etc.

Tim Ward
http://www.chessish.com
mailto:[EMAIL PROTECTED]
----- Original Message ----- 
From: Mako Shark <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 06, 2002 5:03 PM
Subject: [PHP] More $_ array question...


> If I want to access an array of something from a form,
> is it true that I just have to use
> $_POST["array[$counter"]? So I can legitimately do a
> count() of this array, like count($_POST["array"])?
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


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

Reply via email to