简单网页数据传递

来源:互联网 发布:linux运维入门到高级 编辑:程序博客网 时间:2024/05/16 11:46
<!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>