Index login on Main site

Started by Aesoul, June 21, 2005, 03:22:30 PM

Previous topic - Next topic

Aesoul

Hi

Im looking to make an index login on my main site, and I've based it on the tutorials I've seen on the forums.
Heres what i have so far, but it just brings up an error:

<?php
include('forum/SSI.php');

if ($context['user']['is_guest'])
{
   echo
   '<h5>Please Login</h5>;
}
else
{
   echo
   'Welcome ', $context['user']['name'], '
   Enjoy Your Stay!';
}

$_SESSION['login_url'] = 'hxxp:www.union-hosting.co.uk [nonactive]';
ssi_login();

?>

this however brings the error:

Parse error: parse error, unexpected T_STRING, expecting ',' or ';'

can anyone help me...pretty please.

[Unknown]

Find:

'<h5>Please Login</h5>;

Replace:

'<h5>Please Login</h5>';

-[Unknown]

Advertisement: