Notice: Use of undefined constant submit - assumed 'submit'
2014-01-06 18:34
645 查看
Notice: Use of undefined constant submit - assumed 'submit' in
D:\wamp\www\ECMS\insert\monitors.php on line 66
Notice: Undefined index: submit in D:\wamp\www\ECMS\insert\monitors.php on line
66
1: if($_POST['submit']) 加一个判断条件,改为=>
if(isset($_POST['submit']) && $_POST['submit'])
2: 在开头加上
error_reporting(E_ALL & ~E_NOTICE); // 这句话表示提示除去 E_NOTICE 之外的所有错误信息
因为post数组是个空的array,而代码中的这种方法适用于的是提交以后。
Notice: Use of undefined constant submit - assumed 'submit' in
D:\wamp\www\ECMS\insert\monitors.php on line 66
Notice: Undefined index: submit in D:\wamp\www\ECMS\insert\monitors.php on line
66
1: if($_POST['submit']) 加一个判断条件,改为=>
if(isset($_POST['submit']) && $_POST['submit'])
2: 在开头加上
error_reporting(E_ALL & ~E_NOTICE); // 这句话表示提示除去 E_NOTICE 之外的所有错误信息
因为post数组是个空的array,而代码中的这种方法适用于的是提交以后。
相关文章推荐
- Notice: Use of undefined constant user - assumed 'user' in E:\zendWorkspace\smarty_manage\configs\my
- php当中出现的错误:Use of undefined constant title - assumed 'title'的解决方法
- Notice: Use of undefined constant mysql_fetch_array - assumed 'mysql_fetch_array' in E:\wamp\wamp\w
- php提示 Notice: Use of undefined constant name - assumed
- 关于Notice: Use of undefined constant username - assumed 'username' in警告问题
- Notice: Use of undefined constant ShareErrorsFromSession - assumed 'ShareErrorsFromSession' in F:\wa
- Notice: Use of undefined constant out - assumed 'out' in D:wampwwwdaoruindex.php on line 4解决办法
- Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in
- Notice: Use of undefined constant xxx
- 编译openssl库时出现“error C2027: use of undefined type 'in6_addr'”的解决方法
- Notice: Use of undefined constant
- PHP Notice: Use of undefined constant variable
- PHP出现Notice警告 : Use of undefined constant的解决方法
- error C2027: use of undefined type 'A' see declaration of 'A'
- Notice: Use of undefined constant INTL_ICU_VERSION - assumed 'INTL_ICU_VERSION' in D:\work\WWW\basic
- 关于解决PHP报错“Notice:Use of undefined constant error” 解决办法
- Use of undefined constant ws1 - assumed 'name'
- PHP正则替换函数preg_replace()报错:Notice Use of undefined constant的解决方法分析
- 微信支付Notice: Use of undefined constant CURLOP_TIMEOUT - assumed 'CURLOP_TIMEOUT' in
- 用thinkphp5开发Use of undefined constant admin_name - assumed 'admin_name'