Notice: Undefined index
It may happen when trying to recover variables from your forms, below error message appears on your screen:
If you use the
$ _POST or
$ _GET variables to recover your forms or otherwise, you may come across this error:
Notice: Undefined index in 'file path executing php' on line 'current line'
To avoid this error, test whether the table fields was set with the function is
set ().
Example for a variable $ _POST [ 'trick']:
/ / Before you use $ _POST [ 'trick']
if (isset ($ _POST [ 'trick']))
(
/ / Instructions if $ _POST [ 'trick'] exists
)
This type of error is postponed prior on the configuration of the server.
It is not reported by default because it is not important, depending on the constant <gras>E_NOTICE.
You can change the types of errors reported using the
error_reporting.