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.