StevenJ
02-27-2009, 04:51 PM
Hi,
I am putting together a website for my photography, and I am trying to achieve the following.
a pop up CSS or window area that I can enter login credentials to login to an admin area.
while I can create a pop up window, I then struggle.
If authenticated I wish to redirect the "main" window to an admin page, say admin.php and if not, redirect the main page to error.php
I have googled for a tutorial, and found nothing to help (maybe I am using the wrong search terms).
can anyone point me to a tutorial?
currently the pop up window I have done shows the pages that I am redirecting to using the following code:
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
whereas I want the original main page to redirect! help!
I am putting together a website for my photography, and I am trying to achieve the following.
a pop up CSS or window area that I can enter login credentials to login to an admin area.
while I can create a pop up window, I then struggle.
If authenticated I wish to redirect the "main" window to an admin page, say admin.php and if not, redirect the main page to error.php
I have googled for a tutorial, and found nothing to help (maybe I am using the wrong search terms).
can anyone point me to a tutorial?
currently the pop up window I have done shows the pages that I am redirecting to using the following code:
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
whereas I want the original main page to redirect! help!