$_POST['username']
$_POST['password']

解决方案 »

  1.   

    判断是否不为空,用这个!Empty($_POST['username'])
    php.ini中error_reporting = E_ALL & ~E_NOTICE
    或在程序开头加上:
    error_reporting(E_ALL & ~E_NOTICE);
      

  2.   

    比较一下两个版本的配置文件(php.ini)就会明白了
      

  3.   

    bonniewater(陪你去看海) 说的不错
    在程序开头加上:
    error_reporting(E_ALL & ~E_NOTICE);可以还是不明白为什么两个版本的php.ini中的error_reporting都为E_ALL & ~E_NOTICE却有差别