You started your session, then you asked if it is a post request or not.
Then you checked if that post variable isset() to start your code.
Unfortunately the code never run and you have no idea what happened.
Add the 2 lines in red in the following code to find out which post variables exist.