Jump to content

[SOLVED] href output error


fonecave

Recommended Posts

I HAVE A STANDALONE PHP FILE THAT IM TRYING TO GET TO PUT A HYPERLINK ON THE MAIN PAGE IF A VARIABLE IS TRUE. BUT I CANT FIGURE OUT HOW TO GET IT ON THE MAIN PAGE.

 

ON THE MAIN PAGE i REFERENCE TO THE PHP FILE BY USING <SCRIPT>...BLAHBLAH  WHICH WORKS FINE

 

BUT WHEN IT COMES TO TRYING TO GET THE PHP FILE TO ECHO A LINK ON THE MAIN PAGE IT WONT WORK! I HAVE TESTED THE IF STATEMENTS ITS FINE I JUST CANT GET THE LINK TO PRINT

 

I KNOW THAT THE CODE BELOW WOULD PRINT THE HREF TO THE FILE ITSELF AND NOT TO THE PAGE I LINK IT TO BUT I CNT FIGURE OUT HOW TO DO IT THE WAY I WANT :

 

<?php
if(isset($_COOKIE['user'])) {
  $username = $_COOKIE['user'];

if ($username == "administrator")
{

echo"<a href="http://fonecave.110mb.com/" target="_self" ><b>Fonecave Control Panel</b></a>";


}



}
else
{
$msg = "";
}

}
?>


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.