Link problem - newbie question

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


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-09-2007
Suvarna Damodaran
 
Posts: n/a
Default Link problem - newbie question

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
Reply With Quote
  #2 (permalink)  
Old 09-09-2007
brian
 
Posts: n/a
Default Re: [PHP] Link problem - newbie question

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0