duanruanxian5028 2014-12-04 06:59
浏览 25
已采纳

我可以在php表单上找到我选中的复选框来说出别的而不是“on”吗?

I have found a PHP form that I have edited to suit my needs.

I have 12 check boxes. Each has a different option to select. They all email fine, but it says "on" next to the option in the email so I know who has selected what.

The only problem is that I'd rather have it say something else instead of "on"; is this possible?

  • 写回答

1条回答 默认 最新

  • duandu1377 2014-12-04 07:05
    关注

    Just add value='whatever' to the html.

    <input type="checkbox" name="food1" value="Beans">I would like beans
    <input type="checkbox" name="food2" value="Chips">I would like chips
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部