我想让这个注册脚本告诉用户他们输入的密码不匹配.
我使用这段代码:
if ($_POST['pass' != 'pass2'])
{
echo
("Oops! Password did not match! Try again. ");
}
Run Code Online (Sandbox Code Playgroud)
请帮我纠正我的编码.:-( 非常感谢!
您不能在同一$ _POST中引用这两个变量
if ($_POST['pass']!= $_POST['pass2'])
{
echo("Oops! Password did not match! Try again. ");
}
Run Code Online (Sandbox Code Playgroud)