This is a discussion on Link problem - newbie question within the PHP General forums, part of the PHP Programming Forums category; Hi, I think I am having an unusual problem - don't know where I am going wrong. This is the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I think I am having an unusual problem - don't know where I am going wrong. This is the code that I use to display the page once the user is logged in. I want to display a Logout link so the user can logout. But, for some reason, I am unable to display both the welcome message and the Logout link simultaneously unless I insert the line <p><a href = "something.htm">hi</a></p> on top and below the welcome line. Without this line only Logout (without the link) is displayed. What am I doing wrong? <?php include 'accesscontrol.php'; ?> <html> <head> <title> Members-Only Page </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1 </head> <body> <p><a href = "something.htm">hi</a></p> <h1>Welcome, <?=$username?>! </h1> <p><a href = "something.htm">hi</a></p> <p><a href = "logout.php">Logout</a></p> </body> </html> Thanks, Su |
|
|||
|
Suvarna Damodaran wrote:
> Hi, > > I think I am having an unusual problem - don't know where I am going wrong. > This is the code that I use to display the page once the user is logged in. > I want to display a Logout link so the user can logout. But, for some > reason, I am unable to display both the welcome message and the Logout link > simultaneously unless I insert the line <p><a href = > "something.htm">hi</a></p> on top and below the welcome line. Without this > line only Logout (without the link) is displayed. What am I doing wrong? > > <?php include 'accesscontrol.php'; ?> > <html> > <head> > <title> Members-Only Page </title> > <meta http-equiv="Content-Type" > content="text/html; charset=iso-8859-1 > </head> > <body> > <p><a href = "something.htm">hi</a></p> > <h1>Welcome, <?=$username?>! </h1> > <p><a href = "something.htm">hi</a></p> > <p><a href = "logout.php">Logout</a></p> > </body> > </html> > Your meta tag is not closed (the attribute quote isn't even closed). <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Additionally, don't put spaces around the "=" in your tags. brian |