Hi,
Just trying to make a jump to a new page when entering the page Select_item.php.
I have picked up a variable
VALUE from the Header.php (made to equal the associated cookie I set up) which I know is in the header and the variable is pass to the Select_item.php
When the page is loaded a check is made to see if the user has signed in.. if not you are directed to the User Login, then returned to Select_item.php page....OK (that was original script)..
I now have inserted similar code to check if a variable
VALUE is above 0 if true I want to drop through to into the rest of the script page if false I want to redirect to another page, then returned to drop through into the page...
As it is I get the redirect (just redirected to register for testing purposes)what ever the value of the variable
VALUEis..
Am I wrong with the logic or syntax in the Script below...orginal at the top...mine added below......rest of script below cropped off as it works ok
#// ################################################
#// Is the seller logged in?
if(!isset($_SESSION["PHPAUCTION_LOGGED_IN"])) {
$_SESSION["REDIRECT_AFTER_LOGIN"] = "select_category.php";
Header("Location: user_login.php");
exit;
}
#// ################################################
#// Is value above zero?
if ($_SESSION["PHPAUCTION_LOGGED_VALUE"]< 1);{
$_SESSION["REDIRECT_AFTER_LOGIN"] = "select_category.php";
Header("Location: register.php");
exit;
}
#// ###############################################
#
It has been driving me potty...
Come bright lads, help an old man who is on the learning curve..
Cheers in anticipation
John