Re: count number of form fields?

From: Date: Fri, 13 Jul 2001 09:47:57 +0000
Subject: Re: count number of form fields?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57737@lists.php.net to get a copy of this message
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 <jaxon@salamander.net> To: <php-general@lists.php.net> 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#57737) next »