PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Link problem - newbie question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Link problem - newbie question

Réponse
 
LinkBack Outils de la discussion
Vieux 09/09/2007, 17h09   #1
Suvarna Damodaran
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Vieux 09/09/2007, 18h52   #2
brian
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h33.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09038 seconds with 10 queries