Question: what is undefined index in php?
Answer: This error means that within your code, there is a variable or constant that has no value assigned to it. But you may be trying to use the values obtained through the user form in your PHP code. ... This function will check whether the index variables are assigned a value or not, before using them.