Re: Many variables. I want one array. How?

From: Date: Tue, 28 Nov 2000 16:21:56 +0000
Subject: Re: Many variables. I want one array. How?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27610@lists.php.net to get a copy of this message
Name your HTML Form Variables as "cb[]"... ""Marko Perich"" <mperich@araucaniasur.cl> wrote in message news:000101c0595f$074c9b00$1501a8c0@mpi.dssasur.cl... > Hello. > > My problem is that i am creating a form from a .php page and that page can > have from 1 to many rows. In each row there is a checkbox named "cbX", where > X is the number of the row. > > I want the .php called from the previous submit to have access to the cbX > variables in an array (so i can work with it into a for loop). > > JavaScript does it automagically if I give the checkbox the same name (say > just "cb"), but in php I don't know how. > > Any suggestion, clues, alternatives are gracefully accepted. > > Thanks. > > Marko. > > > -- > 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 (#27610) next »