【发布时间】:2013-08-22 20:59:33
【问题描述】:
我使用尊重/验证,当我使用电子邮件()时......问题是:
如果我验证一个字符串:validator::email()->validate('hello@helloworld.com'); 它可以工作!
如果我验证一个变量:validator::email()->validate($_POST['email']); 它不起作用!
我尝试将内容检查到$_POST['email'],它是:hello@helloworld.com
var_dump($_POST['email']); 的确切输出为:string(21) " hello@helloworld.com"
【问题讨论】:
-
var_dump($_POST['email']);的确切输出是什么? -
与 hello@helloworld.com: string(21) " hello@helloworld.com"
标签: php post validation respect-validation