无论你选择什么,但如果你选择其中之一,它可能不是空的。$quickpolltype = "radio"; // set to "radio" or "checkbox"; radio is one choice, checkbox is multiplechoicesif($quickpolltype == "radio" and $_POST['radio
我正在尝试在Codeigniter中添加对html表单上的单选按钮的验证。表单预先填充了数据库中的数据,包括已上载文档的列表(如果项目没有关联的文档,此字段可能为空)。multiple="multiple" /> <label for="mas"><b>Añada mas</b></label>
<input type="radiodocument to e
我有密码字段(选项)它不需要验证,同时提交表单。但是,如果我在密码字段中输入数据,它必须测试密码强度自定义验证。请帮我解决这个问题。它仅在密码字段不为空时进行验证。我的代码如下:return regexpr.test(valuemust contain one lower case letter,upper case letter,