PHP

undefined array key and variable

  • PHP

1 comments

Hi Colleen, when you get an undefined error, it means that the array is not defined but being called.
You can do that by declaring an empty variable.

$userID = $userPermission = $userEmail "";

Another reason is no value is parsed into the variable.
So you will have to check your code again, as I can see that the User ID & User Email is empty