ChipBleeder Posted January 12, 2014 Share Posted January 12, 2014 Hello, I am new to PHP so I don't really know what im doing...but I have a "log Out" and "Change Password" link on a web page when person is logged in. The links are visible on the web page and even in the normal link color...but they are not clickable (will not direct to the ref page). Here is the code (Bolded section that is giving me trouble): if($_SESSION['loggedin']== 'true'){echo "You are logged in as <b>".$_SESSION['cfirst']." ".$_SESSION['clast']."</b> <a href='newdebtor_form.php?loggedout=1'>Log Out</a> | <a href='reset.php?change=1'>Change Password</a><br>";$command= "SELECT * from creditor WHERE email= '".$_POST['cusername']."' AND password = '".$formPwd."';";$result = myquery($command);$data = mysql_fetch_object($result); if (!($data->agreement == 'y')) { echo "<br><font size=3> <a href=pagelink.html>This part works fine and a link here will show up and be clickable</a> </font><br><br>"; }} Again everything from this php script is displaying correctly on the web page... only the "logout" and "change password" links do not open the correct link (not clickable). Any help would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/285317-link-shows-but-not-clickable/ Share on other sites More sharing options...
fastsol Posted January 12, 2014 Share Posted January 12, 2014 If the link is not clickable and the cursor doesn't change when you hove the link then you might have another div that is overlapping the link and putting it to the back in the stacking order. Just a thought. Quote Link to comment https://forums.phpfreaks.com/topic/285317-link-shows-but-not-clickable/#findComment-1465001 Share on other sites More sharing options...
davidannis Posted January 12, 2014 Share Posted January 12, 2014 Can you view the source in your browser and cut the html in question and paste it here? That would help find the problem. Quote Link to comment https://forums.phpfreaks.com/topic/285317-link-shows-but-not-clickable/#findComment-1465002 Share on other sites More sharing options...
KaiSheng Posted January 13, 2014 Share Posted January 13, 2014 You should not put the bolded section into the php code. You have to differentiate php code and html code separately to prevent errors. Quote Link to comment https://forums.phpfreaks.com/topic/285317-link-shows-but-not-clickable/#findComment-1465010 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.