Here is the page:
<?
session_start();
$msg = "";
if($action) {
if ((!$username) || (!$password)) {
$msg = "Must enter Username or Password";
}
$db_name = "dbase";
$table_name = "user_info";
$connection = mysql_connect("***", "*", "***") or die("Couldn't connect.");
$db = mysql_select_db($db_name, $connection) or die("Couldn't select database.");
$sql = "select username and password from $table_name where username ='$username' and password ='$password'";
$result = mysql_query($sql,$connection) or die("Couldn't execute query 1.");
$num = mysql_num_rows($result);
if ($num == 0) {
$msg = "Bad Login try again.";
}
if ($msg ==""){
$loggedIn = $username;
session_register("loggedIn");
//$enter = "Hello $loggedIn You may <a href=\"../index2.php\"><font face=arial size=3> ENTER</a>";
header("location: ../index2.php?");
}
}
?>
<title></title>
<head>
</head>
<style type="text/css">
.Link
{
color : white;
CURSOR: hand;
FONT: 8pt helvetica ;
TEXT-DECORATION: none;
FONT-WEIGHT :normal;
}
.Linkl
{
color : white;
CURSOR: hand;
FONT: 10pt helvetica ;
TEXT-DECORATION: none;
FONT-WEIGHT :normal;
}
</style>
<body bgcolor=black topmargin="0" leftmargin="0" background="../images/mnbg.gif">
<table border=0 width=750 height=550 align=center bgcolor=#b0b2b2 cellspacing="0" cellpadding="0">
<tr>
<td valign=top>
<table border=0 width=750 align=center height=74 cellspacing="0" cellpadding="0">
<tr>
<td width=283 align=left valign=center><img src="../images/logo.gif" border=0 width=283 height=68></td>
<td width=468 align=right><img src="../images/logo2.gif" border=0> </td>
</tr>
</table>
<table border=0 width=750 align=center height=14 cellspacing="0" cellpadding="0">
<tr>
<td width=7 height=14><img src="../images/leftend.gif" border=0 width=7 height=14></td>
<td width=616 height=14 background="../images/bg_top.gif"><img src="../images/bg_top.gif" border=0 width=3 height=14></td>
<td height=14 width=8><img src="../images/rightend.gif" border=0 width=8 height=14></td>
<td height=14 width=18><img src="../images/dots1.gif" border=0 width=18 height=14></td>
<td height=14 width=101><img src="../images/dots2.gif" border=0 width=101 height=14></td>
</tr>
</table>
<table border=0 width=750 align=center cellspacing="0" cellpadding="0">
<tr>
<td width=101 height=18><img src="../images/lefttopblue.gif" border=0 width=101 height=18></td>
<td width=530 height=18 bgcolor=white align=middle><font face=arial size=2 color=blue><b>Login</b></font></td>
<td width=18 height=18><img src="../images/dots3.gif" border=0 width=18 height=18></td>
<td width=101 height=18><img src="../images/dots4.gif" border=0 width=101 height=18></td>
</tr>
</table>
<table border=0 width=750 valign=top cellspacing="0" cellpadding="0">
<tr>
<td border=1 valign=top align=left width=101 bgcolor=blue background="../images/bg_leftblue.gif"><img src="../images/bg_leftblue.gif" border=0 width=101 height=1>
<? include ("lside.txt"); ?>
</td>
<td width=10 bgcolor=white> </td>
<td width=528 height=400 bgcolor=white valign=top align=left><br><font face=arial size=2>
<p> <? echo "$msg"; ?><P>
<b>Member Login:</b><p>
<form method=post action="login.php? action=go bit">
<table>
<tr>
<td>
Username: </td><td align=left><input type=text name="username"></td>
</tr>
<tr>
<td>Password: </td>
<td align=left><input type=password name="password"></td>
</tr>
<tr>
<td colspan=2 align=right><input type=submit name=submit value=Go!>
</td>
</tr>
</table>
</form>
<p>
<table>
<tr>
<td><font face=arial size=2>If you are not a member yet <a href="../signup/signup.php">signup</a> up today and change your Life!</font>
</tr>
</td>
<tr>
<td align=center>
<p><?echo"$enter";?>
</td>
</tr>
</table>
</td>
<td width=10 bgcolor=white> </td>
<td width=101 bgcolor=blue valign=top background="../images/bg_rightblue.gif">
<table width=101 border=0 cellspacing="0" cellpadding="0">
<tr>
<td height=4><img src="../images/righttopblue.gif" border=0 height=4 width=101></td>
</tr>
<tr>
<td><img src="../images/bg_rightblue.gif" border=0 height=1 width=101></td>
</tr>
<!---this will be a include--->
<? include ("rside.txt"); ?>
<!---end--->
</table>
</td>
</tr>
</table>
<table border=0 width=750 align=center cellspacing="0" cellpadding="0">
<tr>
<td height=5 width=101><img src="../images/leftbotblue.gif" height=5 width=101 border=0></td>
<td width=548 bgcolor=white></td>
<td width=101 bgcolor=blue valign=top background="../images/bg_rightblue.gif"><img src="../images/bg_rightblue.gif" border=0 height=1 width=101></td>
</tr>
</table>
<table border=0 width=750 align=center cellspacing="0" cellpadding="0">
<tr>
<td height=11 width=101><img src="../images/dots6.gif" border=0 height=11 width=101></td>
<td height=11 width=10><img src="../images/dots5.gif" border=0 height=11 width=10></td>
<td height=11 width=538 background="../images/bot.gif"><img src="../images/bot.gif" border=0 height=11 width=1></td>
<td height=11 width=101 bgcolor=blue><img src="../images/rightbotblue.gif" border=0 height=11 width=101></td>
</tr>
<?include("bot.txt");?>
</table>
</td>
</tr>
</table>
</body>