You would want to check that the session variables aren't already set for the variables from Form1 and the post values aren't set from those values either. To get the session variable, you would use $_SESSION['<variable name>'] and for the post values, you would use $_POST['<variable name>']. If neither are set, then you would want to forward to form1 again.