Actually it's giving me errors on the GET and the variable $action:
PHP Notice: Undefined index: client_url in /hermes/data11/b364/hintsforhomes/menu.php on line 3
PHP Notice: Undefined variable: action in /hermes/data11/b364/hintsforhomes/protection.php on line 26
PHP Notice: Undefined variable: action in /hermes/data11/b364/hintsforhomes/protection.php on line 21
PHP Notice: Undefined index: client_url in /hermes/data11/b364/hintsforhomes/menu.php on line 3
Menu.php calls protection.php where the login is validated, if OK, it returns to menu.php and continues the script:
Protection script:
if( isset( $POST['action']) )
$action = $POST['action'];
if ($action == "logout")
{
include($logout_page);
exit;
}
else if ($action == "login")
{
/ echo "login_email_address: " . "$login_email_address" . "<br>"; /
if ($login_email_address == "")
{
include($invalidlogin_page);
exit;
}
else
{
Menu script:
<?php
print_r( $GET );
$menu = $GET['client_url'];
if( isset( $GET['client_url']) )
$client_url = $GET['client_url'];
if($menu)
{
header("Location: $client_url");
exit;
} else
{
?>
<?php
include("protection.php");