use <label><input type="checkbox" name="groups[]" value="0" checked> KG</label> instead of <input type="checkbox" name="groups[]" value="0"checked >