samedi 4 avril 2015

Checkbox auto checked based on value from database

how can I auto check the checkbox based on the value from the database? I have the following code:



<input type="checkbox" name="CarModel" value="Yes" ($row[CarModel]==Audi? 'checked' : '') >

Aucun commentaire:

Enregistrer un commentaire