为什么会出现Notice: Undefined index: submit in D:\xampp\htdocs\test.php on line 19
来源:互联网 发布:淘宝网发货地址怎么改 编辑:程序博客网 时间:2024/05/17 04:44
事例如下“:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<?php
include("lianjie.php");
if($_POST["submit"]){
$sql="insert into one (id,fenshu,kemu,pingyu)" . "values ('$_POST[id]','$_POST[fenshu]','$_POST[kemu]','$_POST[pingyu]')";
mysql_query($sql);
}
?>
<form method="post" action="liuyan.php">
学号:<input type="test" name="id"><br />
分数:<input type="test" name="fenshu"><br />
科目:<input type="test" name="kemu"><br />
评语:<textarea name="pingyu"></textarea><br />
<input type="submit" name="submit" value="提交">
</form>
</body>
</html>
当出现这个notice后,当加上下面这个画红框框的条目后,就可以解决这个问题
- 为什么会出现Notice: Undefined index: submit in D:\xampp\htdocs\test.php on line 19
- Notice: Undefined index: submit in D:\.....php on line 2问题
- 如何解决 Notice: Undefined index: submit in D:\wamp\www\bbs\add.php on line 9
- ajax中url提交参数Undefined index: q in D:\xampp\htdocs\ajax.php on line 39
- 表单中PHP的错误提示:Notice: Undefined index: submit in D:\wamp\www\bbs\add.php on line 4
- Fatal error: Call to undefined function OCILogon() in D:\xampp\htdocs\chaxun\rbora.php on line 38
- PHP:Notice: Undefined index: submit in
- Notice: Undefined index: user in D:\phpStudy\WWW\js\ls\lsmc\php\add.php on line 9
- Parse error: syntax error, unexpected '$a' (T_VARIABLE) in D:\xampp\htdocs\curl1.php on line 5
- Notice: Undefined index: id in E:\wamp\wamp\www\liuyanbanban\modify.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
- Fatal error: Call to undefined function oci_connect() in D:\xampp\php\includes\myfun2.php on line 19
- PHP出现Notice: Undefined index: act in C:\警告提示
- Notice: Use of undefined constant title - assumed 'title' in D:\wamp\www\99Pursey\left.php on line
- PHP Notice: Undefined index:
- Notice: Undefined variable: data in /var/www/html/bbeden/modoer/ecshop/includes/lib_base.php on line
- java多线程设置优先级
- 在ubuntukylin下安装chrome浏览器
- 井冈山和梁山的异同
- 拿下内推(1):了解内推要求
- 《黑马》学习笔记
- 为什么会出现Notice: Undefined index: submit in D:\xampp\htdocs\test.php on line 19
- 2-1 水仙花数
- android自定义AlertDialog
- iOS_动态插入删除行
- sql server查询表结构(字段名,数据类型,长度,描述,是否允许为空,是否为主键)
- 请实现一个函数,把字符串中的每个空格替换成“%20”,例如输入 “We are Happly。” 则输出“we%20are%20happy。”
- PHP-Java-Bridge使用笔记
- 解决 - java.lang.OutOfMemoryError: unable to create new native thread
- PHP模拟搜索高校图书管理系统(opac2图书馆系统)(一)