callisto11 Posted December 12, 2007 Share Posted December 12, 2007 ???HERES MY PROBLEM I CANT GET IT TO WORK IN MY HOMEPAGE.PHP: WHAT I WANT IT TO DO IS, WHEN A USER IS LOGGED IN IT SHOULD THE LOGOUT LINK ANF WHEN THEY ARE NOT LOGGED IN, IT SHOULD SHOW THE SIGN IN/ SIGN UP LINK: <?php if (isset ($_SESSION['email'])) { echo <a href="logout.php"> LOGOUT</a>'; } else { echo '<a href="customerlogin.php"> SIGN UP/SIGN-IN</a>'; } ?> IT KEEPS COMING UP WITH THIS ERROR MESSAGE IN BROWSER: Parse error: syntax error, unexpected '<' in C:\wamp\www\rmproduction\homepage.php on line 37 Quote Link to comment https://forums.phpfreaks.com/topic/81359-solved-help-with-php-script/ Share on other sites More sharing options...
adam291086 Posted December 12, 2007 Share Posted December 12, 2007 missing a ' in your code. Change it to the one below <?php if (isset ($_SESSION['email'])) { echo '<a href="logout.php"> LOGOUT[/url]'; } else { echo '<a href="customerlogin.php"> SIGN UP/SIGN-IN[/url]'; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/81359-solved-help-with-php-script/#findComment-412885 Share on other sites More sharing options...
callisto11 Posted December 12, 2007 Author Share Posted December 12, 2007 THANK YOU ADAM, ITS WORKING NOW, JUST MY SILLY MISTAKE! Quote Link to comment https://forums.phpfreaks.com/topic/81359-solved-help-with-php-script/#findComment-412895 Share on other sites More sharing options...
adam291086 Posted December 12, 2007 Share Posted December 12, 2007 We all miss silly things like that. Quote Link to comment https://forums.phpfreaks.com/topic/81359-solved-help-with-php-script/#findComment-412901 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.