[PHP] count number of form fields?

2001-07-13 Thread Jaxon

Hi,

Can someone give me an example of how to count the number of form fields
entered?
E.g. let's say I have three dropdown lists, the first is mandatory, and the
second two are optional.
I want to be able to tell my target php script how many of the dropdowns are
populated.

thanks in advance!
jaxon


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] count number of form fields?

2001-07-13 Thread py

A multiple dropdown lists will produce an array is you put [] when naming
the list. You than need to count how many elements you have in the array.

py

p.s. it could be done in javascript as well, but it's so easy in php :)

- Original Message -
From: Jaxon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 13, 2001 3:32 PM
Subject: [PHP] count number of form fields?


 Hi,

 Can someone give me an example of how to count the number of form fields
 entered?
 E.g. let's say I have three dropdown lists, the first is mandatory, and
the
 second two are optional.
 I want to be able to tell my target php script how many of the dropdowns
are
 populated.

 thanks in advance!
 jaxon


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]