Re: PHP: Variables in <TITLE>
| From: | James Holloway | Date: | Mon, 14 May 2001 13:17:32 +0000 |
| Subject: | Re: PHP: Variables in <TITLE> | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52691@lists.php.net to get a copy of this message | ||
Hiya Taz,
<TITLE>
<?
if (!/* Login code */) {
echo "Error";
} else {
echo "Logged in as $username";
}
?>
</TITLE>
James.
"Tarrant Costelloe" <tcostelloe@insur-e.net> wrote in message
news:B8DC55700B11DA4F8AA61B2803F3D1A805C4A0@insure-ems.insur-e.net...
> I have a log in script written in PHP4 which accesses a secure server.
Once
> entered I want the the secure page to hold the users name (from variable)
in
> the <TITLE> header .... Something along the lines of this:
>
> <title>$name is logged in</title>
>
> Obiously I have tried that with no luck, anyone got any ideas?
>
> Taz
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>