Forums
This topic is locked
Hiding the login form once the user is logged in
Posted 06 Feb 2002 15:49:46
1
has voted
06 Feb 2002 15:49:46 Paul Lacey posted:
Hidoes anyone know how I can hide the login form on a page once the user has successfully logged in, the same as on this site where the form is replaced by:
You are logged on as ****
thanks
Paul
Replies
Replied 06 Feb 2002 23:37:07
06 Feb 2002 23:37:07 Tim Green replied:
Yes. You can use something like this:-
<?php
if ($KT_Username == "" {
?>
<!-- Login Form Goes Here -->
<?php
} else {
?>
Welcome <?php echo $KT_Username; ?>
<?php
}
?>
Hope this helps
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
<?php
if ($KT_Username == "" {
?>
<!-- Login Form Goes Here -->
<?php
} else {
?>
Welcome <?php echo $KT_Username; ?>
<?php
}
?>
Hope this helps
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 07 Feb 2002 13:56:44
07 Feb 2002 13:56:44 Paul Lacey replied:
thank you once again Tim!
works great.
cheers
Paul
works great.
cheers
Paul