<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>提交</title>
</head>
<body>

<form action="w4.php" method="get">
Username: <input type="text" name="user">
<input type="submit" >
</form>

</body>
</html>

将数据传到另一个网页中。

<html>
<body>

Welcome <?php echo $_GET["user"]; ?><br>

</body>
</html>