摘要: 平时用$_post[''],$_get['']获取表单中参数时会出现Notice: Undefined index: --------;服务器配置修改修改php.ini配置文件,error_reporting = E_ALL & ~E_NOTICE或者1 function _get($str){2 $val = !empty($_GET[$str]) ? $_GET[$str] : null;3 return $val;4 } 阅读全文