logo       

[SMARTY] Form check box: msg#00264

php.smarty.general

Subject: [SMARTY] Form check box

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

Attachment: signature.asc
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise