所以我做了一个表单密码系统,我遇到了这个问题,我尝试输入数组中的值,密码仍然错误?(我将“batanes”或“Batanes”放入输入并提交,但由于某种原因它不是正确的密码。即使它是数组中的确切值)
<form id="pass" method="POST">
<b><label for="Pass"> Where is our Ultimate Travel Destination Wish List in the Philippines? </label></b>
<input id="Pass" name="Pass" type="text" placeholder="Enter Password Here..." required>
<input type=submit>
<?php
error_reporting(0);
$pass= array("Batanes", "batanes");
$enter= $_POST['Pass'];
if ($enter === $pass) {
echo <<<EOL
$('<div class=overlay></div>').bind('mouseover',function(){
});
$(<div class="popup"> Good Job Man! <br> Now to the next! </div>).bind('mouseout', function(){
});
<script>
setTimeout(function(){ window.location.href = 'mommysthirdimahe.html'; }, 2000);
</script>
EOL;
exit;
}
elseif ($enter === NULL) {
echo "";
}
我如何做到这一点,以便当 $enter 等于 $pass 数组中的值时,它执行“if”中的函数?
慕神8447489