Form check box
| From: | Juzan Jean-Michel | Date: | Fri, 17 Jan 2003 03:19:01 +0000 |
| Subject: | Form check box | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7239@lists.php.net to get a copy of this message | ||
Hi,
there is a plugin to do this ?
$Sql = "select * from menu where idcategorieparent=91";
$rs = $db->Execute($Sql);
$tmpListe = "";
while (!$rs->EOF) {
$Checked = "";
if (isset ($HTTP_POST_VARS['ListeCheckBox']) and
in_array($rs->fields('id'),$HTTP_POST_VARS['ListeCheckBox'])) $Checked =
"checked";
$tmpListe .= '<input type="checkbox" name="ListeCheckBox[]"
value="'.$rs->fields('id').'"'.$Checked.">".$rs->fields('libmenu')."\n";
$rs->MoveNext();
}
echo $tmpListe;
Regards.
--
Jean-Michel Juzan - Co-Fondateur
Direction Informations & Technologies
eCreaSol - NetWork Creative Solutions
Solutions personalisées pour PME & PMI
Sécurité Systèmes et Réseaux LAN/WAN GNU/linux & Open Source
jmjuzan@ecreasol.ch
http://www.ecreasol.ch/
PGP public keys server : http://www.keyserver.net
"Nous n'héritons pas la Terre de nos parents. Nous l'empruntons à nos
enfants"
Léopold Sédar Shangor
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc