我得到一個內部服務器錯誤與下面的代碼...任何建議:內部服務器錯誤命令
<form name="user" action="this.php" method="post">
<input type="text" name="description" id="description" value="" />
<input type="submit" name="" id="" value="Edit Page" />
</form>
還有就是頁面上沒有其他代碼,並自提交罰款,除非我把文本字段中的一個MySQL查詢,如SELECT查詢FROM d,其中1 = 1
然後我得到以下錯誤:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
我確實有一些的.htaccess規則怎麼回事,但我不知道怎麼會影響一個查詢,並不做任何事情或去任何地方......
如何MySQL的聲明得到放入PHP頁面? – wallyk 2009-12-30 23:16:32
如果我在輸入框中輸入SQL語句。我認爲這是一個服務器配置問題,但我不知道從哪裏開始尋找。 – kylex 2009-12-30 23:20:27
無關(或只有輕微相關,如果mod_security的猜測是正確的,因爲我懷疑),但你需要'htmlspecialchars'你'PHP_SELF',和你一樣寫入HTML其他任何字符串的呼應。否則,你的風險破損和跨站點腳本錯誤(即使惱人的和無效的mod_security已開啓)。 – bobince 2009-12-31 01:10:53