HTML ?? ???? GET ??? ? POST ???
GET ?? ? POST ??
GET ?? ?? (??? ???)
GET ???? ??? ????? ???? ?? ???? ??? ? ??? ?????.
??: ?? ????? ???? ???? ?? ??? GET???.
? ?? ??? ??? ?????
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>用戶注冊</title> </head> <body> <font size="5" color="red">歡迎注冊php.cn</font> <form name="user" method="get" action="" > 用戶名:<input type="text" name="username"/> <br/> 密碼:<input type="password" name="userpwd"/> <br/> <input type="submit" value="提交信息"/> </form> </body> </html>
???? ???? ? ??? ???? ??? ???? ???? ?? ????
? ???? ?? ??? ? ????. ??>
- login.php //? ?? ??? ?????.
- ??? ?? =Xiao Ming&userpwd= 123456 //???? ??? ???? "?? ???"???? ???.
- ?? ??? ?? ???? "?"? ?????.
- ? ? ?? ??? "??=?"? "&"? ?????.
- ?? ??? ?? ?? "="? ?????.
??: ?? ??? ??? ???? ???? ???? ?? ?? ??? ??? ? ????. ??? ??? ???? ??? ??? ?? ?? ?? ? ????.
GET ??? ??:
- GET ??? ????? ?? ??? ???? ??? ? ????.
- GET ??? ??? ???? ?????. ?? ???? ??? ???? ?? ??? ? 100? ?????.
- GET ????? ????? ???? ? ????.
POST ?? ?? ??
- POST? ???? ???? ??? ?????.
- POST? ??? ???? ??? ? ????.
- POST? ?? ????? ???? ? ????.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>用戶注冊</title> </head> <body> <font size="5" color="red">歡迎注冊php.cn</font> <form name="user" method="post" action="login.php" > 用戶名:<input type="text" name="username"/> <br/> 密碼:<input type="password" name="userpwd"/> <br/> <input type="submit" value="提交信息"/> </form> </body> </html>
??: ???? ???? ? ?? ???? ?? ??? ???? ?? ???? ?? ??? ???? ?????. ?? ?? ??