0
Assuming $_SESSION['email'] is set, once it makes sure there is a POST, it is doing nothing but setting session variables and then redirecting as you suspected. From what you have posted, that submit button is just sending you through to thankyou.php. Without the HTML or some JavaScript, no clue...