Good evening all;
This evening I have been toying with the possibilty of having a login in my header. I have successfully managed the code, but for one thing, I want it to disappear when logged in (similar to the block code).
This is a segment of my header.html. I need to know what code I should add that would remove this table and replace it with the standard headerhomemain and headerhomemenu classes.
For example If not logged in this appears on $home
<table width="100%" cellpadding="10" cellspacing="0" border="0" class="headerhome">
<tr>
<td valign="top"><img src="theme/cougarnet/logo.png"></td>
<td valign="top" align="right"><form action="login/index.php" method="post" name="login" id="login">
<table border="0">
<tr>
<td width="80%"><font size="2">
<table align="center">
<tr>
<td align="right"><p><font size="2"><?php print_string("username") ?>:
</font>
</p>
</td>
<td>
<input type="text" name="username" size="15" value="<?php p($frm->username) ?>" style="font-size: 10px" />
</td>
</tr>
<tr>
<td height="24" align="right" valign="top"><p><font size="2"><?php print_string("password") ?>:</font>
</p>
</td>
<td>
<input type="password" name="password" size="19" value="<?php p($frm->password) ?>" style="font-size: 10px" /><BR>
<center><a href="../login/signup.php"><font size="2">New User?</font></a></center></td>
</tr>
</table></font>
</td>
<td width="20%"><font size="2">
<input type="submit" name="Submit" value="Login">
</font>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
else I want the standard header.html (See below)
Thank you for any help you can give me on this issue.
Marc