Why is it always written like this in the editor! No., when running, it always says that it is not defined
Here I am2018-07-27 22:14:49
I feel that there is no id in add.html, so I feel that that line of code can be omitted.
nearest2017-07-25 11:44:32
if(isset($_POST['id']){ $id=$_POST['id']; }
First determine whether $_POST['id'] exists before using it
蝎子2017-07-24 10:51:33
If there is no value in the post, of course it is undefined. If you use a from form to submit to a page and receive the id value, it will not be reported as undefined
PHP中文网2017-07-24 09:09:00
You can block warning level errors. Some versions of PHP will prompt warning errors that POST parameters do not exist. Officially launched to block non-fatal errors.