/ Published in: PHP
I always forget how to do this...
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//On form; checkbox option echo "<input name='chbx' value='1' type='checkbox' CHECKED>"; //After form, find value of chbx for database //Retrieving from database, find if chbx is checked for redisplaying original sumbission $checkbox = "<input name='chbx' value='1' type='checkbox' $chk>";