& ltform action = " test . PHP " method = " post " target = " _ blank " & gt;
& ltp & gt用戶名:
& lt輸入name = " submit " type = " submit " id = " submit " value = " submit "/& gt;
& lt/form & gt;
PHP代碼:創建壹個新的test.php文件。
//用PHP寫接收妳提交的用戶名的值,他的值由(name)傳遞。
//接收模式
& lt?服務器端編程語言(Professional Hypertext Preprocessor的縮寫)
$ user = $ _ POST[" user "];//賬號
回顯“$ user”;//這是妳發的用戶名。
& gt
以下分析:
& ltform action = " test . PHP " method = " post " target = " _ blank " & gt;
& lt/form & gt;
這份表格中的所有代碼都是郵寄到test.php的。