如何解决 Notice: Undefined index: submit in D:\wamp\www\bbs\add.php on line 9
来源:互联网 发布:mac磁盘越来越小 编辑:程序博客网 时间:2024/05/16 13:57
不能识别变量名.两种方法
1.把if($_POST['submit'])改成 if (isset($_POST['submit']))
因为刚开始没有获取submit的值.isset是判断submit是否存在
2: 在开头加上
error_reporting(E_ALL & ~E_NOTICE);
1.把if($_POST['submit'])改成 if (isset($_POST['submit']))
因为刚开始没有获取submit的值.isset是判断submit是否存在
2: 在开头加上
error_reporting(E_ALL & ~E_NOTICE);
表示提示除去 E_NOTICE 之外的所有错误信息
刚刚在编程中遇到类似问题,用的第二种方法。也有说php编译器版本太低导致的。但是最后还是用第二种方法解决了。感谢百度提供的解决办法,在此分享给大家。
0 0
- 如何解决 Notice: Undefined index: submit in D:\wamp\www\bbs\add.php on line 9
- 表单中PHP的错误提示:Notice: Undefined index: submit in D:\wamp\www\bbs\add.php on line 4
- Notice: Undefined index: user in D:\phpStudy\WWW\js\ls\lsmc\php\add.php on line 9
- Notice: Undefined index: id in E:\wamp\wamp\www\liuyanbanban\modify.php on line 问题
- 为什么会出现Notice: Undefined index: submit in D:\xampp\htdocs\test.php on line 19
- Notice: Undefined index: submit in D:\.....php on line 2问题
- Notice: Use of undefined constant title - assumed 'title' in D:\wamp\www\99Pursey\left.php on line
- Undefined index: user in E:\wamp\wamp\www\liuyanbanban\login.php on line 4
- PHP:Notice: Undefined index: submit in
- Notice: Undefined variable: data in /var/www/html/bbeden/modoer/ecshop/includes/lib_base.php on line
- Notice: Use of undefined constant out - assumed 'out' in D:wampwwwdaoruindex.php on line 4解决办法
- Notice: Undefined offset: 4 in d:\...\chaxun\rbora.php on line 96错误方法
- Notice: Undefined offset: 1 in D:\\wwwroot\\wr\\askseo\\404.php on line 5
- php 解决Notice: Undefined index:
- 关于 Notice: Undefined index: 2 in C:\wamp\www\...报错
- 关于 Notice: Undefined index: 2 in C:\wamp\www\...报错
- Notice: Constant CSS_URL already defined in C:\wamp\www\PHP\shop\index.php
- 如何查找PHP中哪里符合配对有错?syntax error, unexpected $end in D:\wamp\www\index.php on
- 5-11 关键活动
- QT 将含有中文字符的QString转化为char*类型
- 深入解析MySQL分区(Partition)功能
- 1075. PAT Judge (25)
- [leetcode:python]38.Count and Say
- 如何解决 Notice: Undefined index: submit in D:\wamp\www\bbs\add.php on line 9
- 建站工具
- 【tyvj4089】n^2(dp)
- Linux之使用MogileFS分布式文件系统并使用nginx实现反向代理
- IO流(1)--字节流
- Android Studio中JNI NDK开发(三)
- 常见dom树操作
- Spring第四篇【Intellij idea环境下、Struts2和Spring整合】
- android6.0 读取storage文件夹需要手动检测读取权限