Notice: Use of undefined constant submit - assumed 'submit' in
问题:
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'])
============================================
问题:
Notice: Use of undefined constant Quantity - assumed 'Quantity'
in C:\wamp\www\insert.php on line 13
解决方法:
The notice your are receiving is because of this line:
if (is_numeric($_POST[Quantity]))
It should be:
if (is_numeric($_POST['Quantity']))
|