- <!DOCTYPE html>
- <html>
- <head>
- </head>
- <body>
- <h1><?php
- print("你好," . $_POST["name"]);
- ?></h1>
- <a href="123.html">返回</a>
- </body>
- </html>
複製代碼- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- </head>
- <body>
- <form method="post" action="123.php">
- <label>姓名: </label>
- <input type="text" name="name">
- <input type="submit" value="submit">
- </form>
- </body>
- </html>
複製代碼 |