1.每日总结

1.php$_GET 变量$_POST 变量

$_POST 变量用于收集来自 method="post" 的表单中的值。

$_GET 变量用于收集来自 method="get" 的表单中的值。

<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>

<form action="welcome.php" method="get">
名字: <input type="text" name="fname">
年龄: <input type="text" name="age">
<input type="submit" value="提交">
</form>

</body>
</html>
欢迎 <?php echo $_GET["fname"]; ?>!<br>
你的年龄是 <?php echo $_GET["age"]; ?>  岁。

$_POST同理
 
原文地址:https://www.cnblogs.com/chenghaixiang/p/14911280.html