<table width="98%" border="0" cellspacing="2"
cellpadding="2">
<?
if(isset($session[userid])){ // Member is logged in so we
have to display welcome message with userid and one logout link
echo "<tr><td align=center'><strong><font color='#FFFFFF'>Welcome
$session[userid]</font></strong></td></tr>
<tr> <td><font color='#FFFFFF'><strong><a href='logout.php'>LOGOUT</a></strong></font></td></tr>
";
}else { // Member has not logged in so we can display the login form
allowing member to login with user id and password
echo "<form name='login' method='post' action='loginck.php'
style='margin:0px'>
<tr><td width='37%'><strong><font color='#FFFFFF'>Username</font></strong></td>
<td width='58%'><input name='id' type='text' class='field'
id='username22' size='14'></td>
</tr>
<tr><td><strong><font color='#FFFFFF'>Password</font></strong></td>
<td><input name='pw' type='password' class='field' id='password227'
size='14'></td>
</tr>
<tr><td> <a href='forgot.php'>Forgot
password</a></td>
<td valign='top'><input name='imageField2' type='image' src='images/login.gif'
width='48' height='18' border='0'></td>
</tr></form>";
} // End of else condtiion
echo "</table>";
?>