-4
I believe this problem is happening because there is no Session with value 'x' defined. By its code, Session is defined in a javascript function that is never called :/. That is if you try to use Session 'x' and it does not exist it will probably give Undefined index error. And this you can deal with an if before displaying, for example:
isset($_SESSION['x']) ? $_SESSION['a'] : null;
Try calling the function "numerox();" or by an onclick/onchange event or put this piece after the end of the function, just to see if it works, if it doesn’t work, post the code to help you better.
you started the session within the function but did not make her call, so
$_SESSION['x']
there is no.– rray
Use a condition
if..else
or ternary to check if the value exists before printing it. Ex.:echo isset($_SESSION['x']) ? $_SESSION['x'] : 'No ecxiste';
– Valdeir Psr
Include code instead of images
– Leandro Angelo