Quote:
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.
The error can be avoided by using the isset() function. This function will check whether the index variables are assigned a value or not, before using them.
Based on the error and code lines you share, it seems the
$_SESSION['C']
is not defined. i.e.: Index '
C
' does not exists in the variable
$_SESSION
.
You have the entire code. Use DEBUGGER and step through to see the same and then find why so, handle it. If
isset()
helps, go ahead and use it based on the flow.
Refer:
PHP isset() Function[
^]
PHP: Debugging in PHP - Manual[
^]