|
[SMARTY] Form check box: msg#00264php.smarty.general
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@xxxxxxxxxxx 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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [SMARTY] How do I group db results by category with Smarty?: 00264, gawan |
|---|---|
| Next by Date: | [SMARTY] Smarty Plugins and other Smarty links]: 00264, Roberto Bertó |
| Previous by Thread: | RE: [SMARTY] How do I group db results by category with Smarty?i: 00264, Hoffman, Geoffrey |
| Next by Thread: | [SMARTY] Smarty Plugins and other Smarty links]: 00264, Roberto Bertó |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |