招聘网站预算怎么做,宜兴做网站哪家好,seo关键字优化软件,四川省建设人才网官网HTML示例#xff1a;用户填写输入字段#xff1a;dfgdfg.comecho $_POST[email]; //output: dfgdfg.com表单中每个输入的名称和值都将发送到服务器.有没有办法获得名称属性#xff1f;所以像..echo $_POST[email].name; //output: email编辑#xff1a;澄清对我的问题的一些…HTML示例用户填写输入字段dfgdfg.comecho $_POST[email]; //output: dfgdfg.com表单中每个输入的名称和值都将发送到服务器.有没有办法获得名称属性所以像..echo $_POST[email].name; //output: email编辑澄清对我的问题的一些困惑;我们的想法是使用交换机动态验证每个输入.我使用一个单独的验证类来保持一切清洁.这是我最终结果的一个简短示例//Main php pageif (is_validForm()) {//All input is valid, do something..}//Separate validation classfunction is_validForm () {foreach ($_POST as $name $value) {if (!is_validInput($name, $value)) return false;}return true;}function is_validInput($name, $value) {if (!$this-is_input($value)) return false;switch($name) {case email: return $this-is_email($value);break;case password: return $this-is_password($value);break;//and all other inputs}}感谢raina77ow和其他人