解决方案 »

  1.   

    这是一条提示在前面做个默认值
    $_SESSION[pwd]='';或者降低错误提示的等级
      

  2.   

    不是这个错误,现在是出现了  未定义的sub  这个变量 的错误
      

  3.   

    在使用没有定义的变量之前都先用isset来判别下然后再做操作,这样就不会报错了。
      

  4.   

    缺少引号!
    $_SESSION['pwd'] = Encrypt($_POST['text1']); Use of undefined constant 使用未定义常量
      

  5.   

      $_SESSION[pwd] = Encrypt($_POST['text1']); 
      

  6.   

      $_SESSION[pwd] = Encrypt($_POST['text1']); 
    Notice: Use of undefined constant pwd - assumed 'pwd' in F:\xampp\htdocs\test\test02.php on line 74