4
meh what the hey, this is what I would have expected to see. Possible that your way is better. This is just the way I was taught.
<?php
if(isset($_REQUEST['logout']) && $_REQUEST['logout']=="yes")
{
setcookie("teck_username","");
setcookie("teck_password","");
echo "<script language='javascript'> location.href='http://www.brantnow.com/user.php?op=logout'</script>";
}
?>
<?php
if(!isset($_COOKIE['teck_username']) || $_COOKIE['teck_username']=="")
{
echo "<table class="loginbar" border="0" cellpadding="0" cellspacing="0">n";
echo "<form action="http://www.brantnow.com/user.php?op=login" method=post>n";
echo "<tr align="center">n";
echo "<td align="center" colspan="6" nowrap >Welcome to the <strong>brantNOW.com</strong> Network. If you are not a member: <a href="http://www.brantnow.com/register.php" target="_blank"><strong>Click here to register</strong></a>. It's <strong>100%</strong> <strong>FREE</strong>!</td>n";
echo "</tr>n";
echo "<tr align="center">n";
echo "<td nowrap ><strong>User Name:</strong></td>n";
echo "<td align="center" >n";
echo "<input name="uname" type="text"> </td>n";
echo "<td nowrap ><strong>Password</strong>:</td>n";
echo "<td align="center">n";
echo "<input name="pass" type="password"> </td>n";
echo "<td align="center" >n";
echo "<input type="submit" value="Sign in"> <input type="hidden" name="login1" value="yes"> </td>n";
echo "<td align="center" nowrap style="font-weight:bold"><a href="http://www.brantnow.com/index.php">brantNOW</a> | <a href="http://www.brantads.com/index.php">brantAds</a> | <a href="http://www.brantdate.com/index.php">brantdate</a> <a href="http://www.brantnow.com/index.php"></a></td>n";
echo "</tr>n";
echo "</form>n";
echo "</table>n";
}
else {
echo "<table class="loginbar" border="0" cellpadding="0" cellspacing="0">n";
echo "<form method="post" name="tablogin1" >n";
echo "<tr >n";
echo "<td align="center" >Please show your support for Brantford's FREE Online Community! <strong>Make brantNOW.com your homepage.</strong> </td>n";
echo "</tr>n";
echo "<tr>n";
echo "<td align="center">n";
echo "<a href="javascript:document.tablogin1.submit();">Logout</a> |
<a href="http://www.brantnow.com/clogin.php?site=3">brantnow</a> |
<a href="http://www.brantnow.com/clogin.php?site=1">brantdate</a> |
<a href="http://www.brantnow.com/clogin.php?site=2">brantads</a>n";
echo "<input type="hidden" name="logout" value="yes">n";
echo "</td>n";
echo "</tr>n";
echo "</form>n";
echo "</table>n";
}
?>