Jump to content

Link Shows But Not Clickable


ChipBleeder

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/285317-link-shows-but-not-clickable/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.