php中提示Undefined index的解决方法

作者: 吴杰 分类: 编程 发布时间: 2011-10-13 18:40

php中报错:Undefined index。

解决方法:

在变量前面 加上一个 @ ,如

if (@GET['action']=='save') { ...