开发者

phpinfo() in query_string clear $_GET variables

Hi im trying to make a form with a textbox to search words and functions.

but when i search phpinfo( or phpinfo() all $_GET variables are empty. for examp开发者_如何转开发le

<form name="search-form" method="GET" action"results.php">
<input name="search-input" value = "" type="text"/>
<input name="search-submit" value ="Submit" type="submit"/>
</form>

if i search anything and print

print_r($_GET);

works but when i search phpinfo( or phpinfo() and i print with print_r($_GET) returns array() all the times.

why is this happen?


You should ask your hosting provider. The symptoms suggest there's a security module out there (maybe mod_security) filtering out your query strings with a black list.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜