RE: [PHP] PHP Coding Question

From: Date: Thu, 26 Oct 2000 02:53:29 +0000
Subject: RE: [PHP] PHP Coding Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22024@lists.php.net to get a copy of this message
just do a form something like this: <form ...> <input type="checkbox" name="data[]" value="1">1 <input type="checkbox" name="data[]" value="2">2 <input type="checkbox" name="data[]" value="3">3 <input type="checkbox" name="data[]" value="4">4 ... </form> When the form is posted, php will create the $data array containing the values of any of the selected checkboxes. Jason > -----Original Message----- > From: Kyle Mathews [mailto:kyle@thedip.net] > Sent: Wednesday, October 25, 2000 4:21 PM > To: php-general@lists.php.net > Subject: [PHP] PHP Coding Question > > > Ok, this is what I'm trying to do. > > Setup a form with about 20 different check boxes. Now once > submitted I need > the values of the boxes that were checked to go into an array. I need this > so that I can later dump the values, in a clean manner, to a > printable page. > > Is there an efficient way to do this, and if so could someone give me some > example code? > > Thanks, > Kyle > > > -- > 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 > > _______________________________________________________ Site Design, Hosting, and E-Commerce at www.webpipe.net

« previous php.general (#22024) next »