I am cleaning the erros of a php script with the line
error_reporting(E_ALL);
in the begginig of it.
But i am becoming several notices based on the same issue:
Notice: Undefined index: add in C:\xampp\htdocs\webshop\index.php on line 27
27: if($_POST['add'])
28: {

I do not understad why i am becoming this error. Add is a variable sent with the post method by a formular. Add is not declared before the POST call in index.php but it should not.
If anyone knows the answer it would be great so i can clean those notices.
Thanks in advanced.

Reply