Help with Verify Form field Information
Hey Eric,
Thanks once more for your help. You said

if(!isset($_SESSION['your var']) || $_SESSION['your var'] != 'the value of this var'){
header("Location: your_verify_page.php");
}
This check will make sure that if the user does not have this session variable set or it does not have the correct value the user will be redirected back to your verify page. You would need to fill in the parts about your session variable name, the value and your verify page.
.

I have four session variables(FirstName, LastName, Phone and Zipcode) created in my verify.php page I don't know which one to replace in the above quote and I don't know what session value to use. I have simply changed the above quote to:
if(!isset($_SESSION['FirstName']) || $_SESSION['FirstName'] != '1'){
header("Location:verify.php");
}
and placed at the top of the EmailPW Page and when I tried direct access to EmailPW page, I am redirected back to verify.php page(as was expected). But when I tested the verify.php by completing the form fields that match that in the database, I was redirected to verify.php page. I was expected to be redirected to EmailPW page since the form fields match that in the database.
I am surely doing something wrong with the session variable and the value of the session. Do I need to fill in all the session variables in the above quote? Any clue on what I can do?
Thanks in advance