duanhao4909 2012-03-30 12:06
浏览 27
已采纳

如何在php中默认选中复选框[关闭]

I am working in a form in which there are check boxes now i want to check one by default in admin panel which is checked by the user in fromt end while he submitted form.Form is same in both the panel but in admin panel the form is already filled with values entered by the user at the time of submitted in front end.

  • 写回答

2条回答 默认 最新

  • dqssst0144 2012-03-30 12:09
    关注

    You can use this code :

    <input type="checkbox" name="check" <?php if($status=="admin") echo "checked=\"checked\""?>>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?