简单网页数据传递

<!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>
posted @ 2017-08-14 20:38  云胡同学  阅读(211)  评论(0编辑  收藏  举报