當前位置:編程學習大全網 - 網站源碼 - 為什麽我的html表單數據不能提交到php-CSDN論壇?

為什麽我的html表單數據不能提交到php-CSDN論壇?

下面是壹個HTML表單

& 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的。

  • 上一篇:壹部電影男主掉入循環時間每天六點重新開始
  • 下一篇:C語言內部函數 printf() 具體是怎麽寫的
  • copyright 2024編程學習大全網