我有一个数据库驱动的测试,我想修改它,这样用户就不能提交结果,除非他们已经尝试回答了所有问题。我可以简单地在大多数问题中插入"required“,但这不适用于具有多个复选框作为答案的问题。$required = ($Value == 0) ? "required" : ""; //condition to check if the value is first. since it is database driven it would be better to check the key instead of the valu
我已经为注册表单添加了一个名为ID Number的新字段,我希望将其作为必填字段进行验证。我添加了以下代码catalog\language\english\checkout\checkout.php;catalog\controller\checkout\register.php
if ((utf8_strlen($this->request->post['n