EricOnAdventure Posted April 14, 2017 Share Posted April 14, 2017 Running the following code, nothing is set, but everything echos anyway if((isset($_SESSION['post']["EduMA"])) && (isset($_SESSION['post']["EduMA2"]))) { echo $EduMA2; } if (isset($_SESSION['post']["EduPhD"])) { echo $EduPhD; } Thanks Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted April 14, 2017 Share Posted April 14, 2017 nothing is set How do you know that? Have you actually inspected the variables, or is this just an assumption? And how do you know the output is in fact coming from the statements? Have you verified that? Quote Link to comment Share on other sites More sharing options...
EricOnAdventure Posted April 14, 2017 Author Share Posted April 14, 2017 Thanks for checking on my code awareness, but I got that part covered I know the output is coming from these because when I // the output goes away I know nothing is set because I am using foreach($_POST as $varname => $value) { print "<b>".$varname."</b> = $value <br/>"; } and these $varables are not set That is why I am stumped. Quote Link to comment Share on other sites More sharing options...
Solution Jacques1 Posted April 14, 2017 Solution Share Posted April 14, 2017 Thanks for checking on my code awareness, but I got that part covered I don't think so. $_SESSION isn't $_POST. Quote Link to comment Share on other sites More sharing options...
Jacques1 Posted April 14, 2017 Share Posted April 14, 2017 By the way, you should use var_dump() and enable/install the XDebug extension. This will give you detailed, HTML-safe debug output. When you invent your own methods, you can easily miss data, especially if you view the rendered page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.