标签 undefined 下的文章

分类: Web

PHP Notice: undefined index解决方法

在使用$_GET['xxxx']传递参数时,如果之前不加判断在未传进参数时会出现类似的警告:PHP Notice: undefined index xxx主要有以下解决方法:1、在变量前加上'@'表示这行如果有错误或是警告不要輸出 如:@$classid=$_GET["classid"] 2、做判断:isset($_GET["class...

阅读全文 »