好的,我是 php 的新手。这就是我正在尝试做的事情。这是我的 index.html
<html>
   <body>
      <form action="welcome.php" method="post">
          Name: <input type="text" name="fname">
          Age: <input type="text" name="age">
          <input type="submit">
       </form>
   </body>
</html>
我发布到welcome.php
<html>
   <body>
      Welcome <?php echo $_POST["fname"]; ?>!<br>
      You are <?php echo $_POST["age"]; ?> years old.
   </body>
</html>
但不是显示页面,而是下载welcome.php