Quote:
Originally Posted by paligron
the undefined variable is the 'accessories', which is the name of the input field. How do you define it as an array? I have tried to define it normally as an array but the submitted result is always empty.
|
"Undefined index" means the variable you are trying to use doesn't exist (when your variable is not properly set). One way to handle this issue is to check if $_POST['action'] is set before using it. For example: