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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.