有两个文件。首先
<!DOCTYPE HTML>
<HTML>
<HEAD>
<meta charset="utf-8">
<style>
.bottom_block
{
background-color: white;
<!--border: 1px black solid;-->
border-radius: 10px 10px 10px 10px;
width: 20vw;
height: 20vh;
margin-left: 39.5vw;
margin-top: 2px;
}
</style>
</HEAD>
<div class="bottom_block">
<FORM method="post" action="admin_authentication.php">
<div style="width: 90%; height: 15%; margin-left: 20%; margin-top: 5%">
<input type="text" style="width: 70%; height: 77%" placeholder="Username" name="admin_username" required>
</div>
<div style="width: 90%; height: 15%; margin-left: 20%; margin-top: 5%">
<input type="password" style="width: 70%; height: 77%;" placeholder="Password" name="admin_password" required>
<br><br>
<input type="submit" name='admin_send' style="width: 40%; height: 100%" value="Submit">
</div>
</FORM>
</div>
</HTML>
第二个 admin_authentication.php
<?php
echo $_POST['admin_username'];
echo "Yes";
?>
$_POST['admin_username']当此代码通过“简单” (即安装在计算机上的)apache 运行时,它会打印出Yes. 但是当我从 PhpStorm 运行它时,它只给出Yes它可能是什么???
这是我的问题的答案。在网上找了很久,终于找到了。
资源