RE: [PHP-WIN] Check box value for PHP

From: Date: Tue, 28 Oct 2003 08:47:32 +0000
Subject: RE: [PHP-WIN] Check box value for PHP
Groups: php.windows 
Request: Send a blank email to php-windows+get-21905@lists.php.net to get a copy of this message
Hi Rinku, In HTML form: <form action="" method=post> <input type=checkbox name=checkbox1 value="1"> <input type=checkbox name=checkbox1 value="2"> <input type=checkbox name=checkbox1 value="3"> ... </form> In Php code: $checkbox1 = $HTTP_POST_VARS["checkbox1"]; $num = count($checkbox1); for ($i=0; $i<$num; $i++) { echo $checkbox1[$i]; } You can also get this from php manual. Regards Rick -----Original Message----- From: Rinku Shivnani [mailto:rinku@banas.guj.nic.in] Sent: Tuesday, October 28, 2003 3:37 PM To: php-windows@lists.php.net Subject: [PHP-WIN] Check box value for PHP Dear All, Pls guide on how to assign value for chkbox in PHP ? I have program in which if a person clicks on chkbox and then clicks on submit then the chked records shd not come in the list. Regards, Rinku -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#21905) next »