gpt4 book ai didi

php - 值肯定是 POSTED 但 isset() 说 NO

转载 作者:搜寻专家 更新时间:2023-10-31 22:11:16 25 4
gpt4 key购买 nike

<分区>

请参阅下面给出的代码。自从过去 5 个小时以来,我一直在与这段代码作斗争,以了解为什么 isset() 将条件评估为 false,如果发布的值与它应发布的值完全相同。如果我取消注释行号。 - 4,5,6,7,8 并放置第 1 行的其余代码。 10 到 28 我可以看到 POSTED 值。任何人都可以通过任何指导或建议帮助解决这个问题。我将不胜感激。

<?php
include 'dbconnection.php';
include 'functions.php';

// var_dump($_POST); what happens when you uncomment this line?

//sec_session_start();
// $email = $_POST['logemail'];
// $password = $_POST['p'];
// echo $password;
// echo $email;
// Our custom secure way of starting a php session.

if(isset($_POST['logemail'], $_POST['p'])) {
$email = $_POST['logemail'];
$password = $_POST['p']; // The hashed password.
if(login($email, $password, $mysqli) === true) {
// Login success
//$url = 'mwq';
//echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
echo $password;
echo $email;

} else {
// Login failed
header('Location: login.php?error=1');
}
} else {
// The correct POST variables were not sent to this page.
echo 'Invalid Request Data Not POSTED';
}
?>

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com