posted 14 years ago
Ok, I have three pages:
A.php, B.php and C.php
When A.php is loading it looks at a session variable and either loads the rest of the page or redirects to B.php.
B.php is a login page and it posts to C.php.
Now the problem comes when I want to redirect from C.php to A.php or B.php based on if the validation on page C.php is true or not
(true -> A.php, false -> B.php to login in again).
I was just wondering if there is a problem when trying to redirect from a page that has been posted to, because the page always just
re-displays B.php when I try to redirect from C.php.
I'm using php so the redirect looks like so:
that works good when I go to the admin page without logging in first, just fowards it to B.php(login). But when I post the password to C.php to validate it and then redirect again to either A or B, it just doesn't do anything but reload B.php.
So basically:
A.php
B.php
C.php
Thanks,
Justin
You down with OOP? Yeah you know me!