$submit => $_POST["submit"]

解决方案 »

  1.   

    没有错误 这个是警告 sumbit没有定义是php.ini中设置问题 
    display_errors  off 错误就没有了  调试的时候可以开着if (isset($submit)) { 看看
      

  2.   

    1. Do not set the submit button's name as "submit", it sometimes may cause error.
    2. Use $_POST[] to get the posted data, it is the canonical code.What you write is available in the low version of PHP.
      

  3.   

    error_reporting  =  E_ALL & ~E_NOTICEin php.ini