我得到一个内部服务器错误与下面的代码...任何建议:内部服务器错误命令
<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