我在很多资料上都看到别人直接用:if ($submit) …………
if ($id)…………if (!$id) …………为什么我每次用都显示“Notice: Undefined variable: submit in d:\usr\www\html\1.php on line 11”
Notice: Undefined variable: id in d:\usr\www\html\1.php on line 53
我该怎么做?
还是不行,只是
Notice: Undefined variable: submit in d:\usr\www\html\1.php on line 4 变成:
Notice: Undefined index: submit in d:\usr\www\html\1.php on line 4
后来我用if(isset($_POST["submit"])),一切正常,谢谢各位啊