我已經檢查過這段代碼幾次。
這裏的形式發送POST數據:
<form action="/loginwizard" method="post">
<input type="hidden" name="action" value="login">
Email:
<br>
<input type="text" name="email" id="email" size=100>
<br>
Password:
<br>
<input type="password" name="pword" id="pword" size=100>
<br>
<input type="submit" value="Login">
</form>
我的PHP腳本使用:
print_r($_REQUEST);
而這樣做的結果是:
Array()
這是使用:
PHP:版本5.6.8,
系統:Windows NT XXX-PC 6.1構建7601(Windows 7家庭高級版Service Pack 1)i586的
阿帕奇:阿帕奇/ 2.4.12(Win32的)的OpenSSL/1.0 0.1升PHP/5.6.8
,如果它算個什麼,always_populate_raw_post_data設置爲0
請從開始頁面顯示您的帖子,直到'print_r($ _ REQUEST)'。您的表單正常工作。 – fusion3k
@ fusion3k - 表單是否正常工作?這是一個可疑的行動 - 除非OP有自定義URL,這可能實際上並不奏效。 –
@cale_b當然,我指的是語法man。 – fusion3k