Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Script, logic or syntax wrong.....or have I got it all wrong
Old 12-14-2005, 05:00 PM Script, logic or syntax wrong.....or have I got it all wrong
Junior Talker

Posts: 2
Trades: 0
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
wudz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Script, logic or syntax wrong.....or have I got it all wrong
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39015 seconds with 12 queries