How to validate a single checkbox using PHP & MySQL

后端 未结 2 1254
迷失自我
迷失自我 2020-12-21 11:21

I was wondering how can I validate a single checkbox using PHP and MySQL.

Here is the HTML.



        
2条回答
  •  甜味超标
    2020-12-21 11:49

    If isset($_REQUEST['privacy_policy']) returns true, they ticked the box. If not, they didn't.

提交回复
热议问题