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.
精彩评论