Hi all,
I have a form that users can access without being logged in. If they submit the form, I want to show a login page, then if the login is succesful, redirect to the original address that was wanted.
Example:
<form name="test" action="fred.php" method="post">
<input type="hidden" name="var" value="testvar">
</form>
Then the fred.php script:
if (!$logged in) {
show login form and call login.php.
}
print $var;
The login page script:
if (uservalidated()) header(location:fred.php");
So basically, when I call fred.php from the login page, I lost the HTTP_POST_VARS.
How can I transport the variables through this entire process? I want to avoid having to get the values from the original $HTTP_POST_VARS and passing them as a URL.
I think I need to do a manual POST again back to fred.php, but I don't know how to do that!
Help appreciated, thanks!
F.