$_POST ??
PHP??? ?? ??? $_POST ??? ???? method="post"? ???? ???? ?? ?????.
$_POST ??
?? ??? $_POST ??? method="post"? ???? ???? ?? ???? ? ?????.
POST ???? ???? ???? ??? ???? ????? ??? ???(????? ?? ???? ???? ??) ???? ??? ??? ??? ????.
??: ??? ????? POST ???? ???? ?? ???? 8MB???(php.ini ???? post_max_size? ???? ??? ? ??).
HTTP POST? ?? ??? ??? URL? ???? ????.
?? ?? ??? ????.
?, URL? ??? ???? ?? ??? ?? ???? ???? ? ????.
Instance
form.html ?? ??? ??? ????.
<html> <head> <meta charset="utf-8"> <title>php.cn</title> </head> <body> <form action="welcome.php" method="post"> 名字: <input type="text" name="fname"> 年齡: <input type="text" name="age"> <input type="submit" value="提交"> </form> </body> </html>
???? "??" ??? ???? URL? ??? ?????.
http: //ipnx.cn/welcome.php
"welcome.php" ??? ?? $_POST ??? ?? ?? ???? ??? ? ????. ?? ??? ??? ???? $_POST ?? ?? ??? ??? ?):
歡迎 <?php echo $_POST["fname"]; ?>!<br> 你的年齡是 <?php echo $_POST["age"]; ?> 歲。