Every time a POST value is not equal to the list of values set in an array will return: Undefined Index error, I made an if statement but is not working.
Here\'s the
You should first check to see if $_POST['product'] is set with isset(), like:
if( isset($_POST['product']) ){ // Do something with $_POST['product'] }
That should suppress the warning.