mardi 21 mars 2017

Checkbox stays checked by default but stay unchecked on save

I have a php file with this checkbox code below

<tr>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td align="right">Include In Top Sellers?</td>
                          <td>
                            <input type="hidden" name="include_top"
                            value="0"><input type="checkbox"
                            name="include_top"
                            id="include_top"
                            value="1"                             autocomplete="off" checked="yes"/>
                          </td>
                        </tr>

Right now it automatically checks it by default but if I uncheck it and save my php form it stays checked. Anyway to change this?




Aucun commentaire:

Enregistrer un commentaire