终于找到了合适的插件,终于可以贴代码了。
随便贴一段表示庆祝。
<?php require_once "functions.php"; $userName = $_POST["name"]; $passWord = $_POST["password"]; $ssid = $_POST["ssid"]; session_start(); if(validateUser($userName,$passWord,$DB_CONFIG)){ $_SESSION["auth"] = true; echo "set true"; } ?> <html> <body> <?php if($_SESSION["auth"] == true){echo "Authed" . "<br>";} else {echo "Unauth"."<br>";} ?> <?php echo $userName;?><br> <?php echo $passWord;?><br> <?php echo session_id()?><br> </body> </html>