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条)

报告相同问题?

悬赏问题

  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!
  • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
  • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
  • ¥15 相敏解调 matlab
  • ¥15 求lingo代码和思路
  • ¥15 公交车和无人机协同运输
  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效