这是主要的
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Testing</title>
</head>
<body>
<form action="/post.php" method="post">
Nr1: <input type="text" name="Nr1" id="Nr1" value=""><br>
Nr2: <input type="text" name="Nr2" id="Nr2" value=""><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
这是post.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
Number 1 was: <?php echo $_POST["Nr1"]; ?><br>
And number 2 was: <?php echo $_POST["Nr2"]; ?><br>
</body>
</html>
点击“提交”会在post.php上返回空结果。
有人可以解释为什么吗?