Login, find fejlen!
Hey,Jeg har et problem med en login - den melder dette: www.hpsolutions.dk/cycling/admin !
Er der nogen der kan finde fejlen ?
<?
ob_start();
session_start();
?>
<html>
<head>
<meta http-equiv="Content-Language" content="da">
</head>
<body bgcolor="#C0C0C0">
<?
if($send){
$db = mysql_connect("localhost", "xxxx", "xxxx");
mysql_select_db("xxxx", $db);
$res = mysql_query("SELECT id FROM cwlogin WHERE bruger='$bruger' AND password='$password'");
if ((mysql_num_rows($res) == 1)) {
if(!isset($user)) {
session_register("user");
$user = $bruger;
if(!isset($pass)) {
session_register("pass");
$pass = $password;
header("Location:index2.php");
}
} else {
?>
<table border="0" width="100%" id="table2" cellspacing="0" cellpadding="0" height="50">
<tr>
<td> </td>
</tr>
</table>
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
<tr>
<td width="%"> </td>
<td width="415">
<table border="0" width="415" id="table3" cellspacing="1" cellpadding="0" bgcolor="#333333">
<tr>
<td bgcolor="#D4D0C8">
<table border="0" width="100%" id="table8" cellspacing="0" cellpadding="0" height="1">
<tr>
<td></td>
</tr>
</table>
<table border="0" width="100%" id="table9" cellspacing="0" cellpadding="0" height="18">
<tr>
<td width="1"></td>
<td width="%">
<img border="0" src="images/login/top.gif" width="411" height="18"></td>
<td width="1"></td>
</tr>
</table>
<table border="0" width="100%" id="table6" cellspacing="1" cellpadding="0">
<tr>
<td bgcolor="#6E90E5">
<table border="0" width="100%" id="table7" cellspacing="0" cellpadding="0">
<tr>
<td height="72">
<img border="0" src="images/login/logo.gif" width="411" height="72"></td>
</tr>
<tr>
<td background="images/login/mellem.gif" height="5"></td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" width="100%" id="table10" cellspacing="0" cellpadding="0" height="15">
<tr>
<td></td>
</tr>
</table>
<form method=post action="<? $PHP_SELF; ?>" ?>>
<table border="0" width="100%" id="table11" cellspacing="0" cellpadding="0">
<tr>
<td width="34"> </td>
<td width="94">
<font face="Verdana" size="1">
Brugernavn:</font></td>
<td>
<input type="text" name="bruger" size="35" style="font-family: Verdana; color: #333333; font-size: 8pt; border: 1px solid #666666; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #EBEBEB"></td>
</tr>
</table>
<table border="0" width="100%" id="table13" cellspacing="0" cellpadding="0" height="5">
<tr>
<td></td>
</tr>
</table>
<table border="0" width="100%" id="table12" cellspacing="0" cellpadding="0">
<tr>
<td width="34"> </td>
<td width="94">
<font face="Verdana" size="1">Password:</font></td>
<td>
<input type="text" name="pass" size="35" style="font-family: Verdana; color: #333333; font-size: 8pt; border: 1px solid #666666; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #EBEBEB"></td>
</tr>
</table>
<table border="0" width="100%" id="table14" cellspacing="0" cellpadding="0" height="15">
<tr>
<td></td>
</tr>
</table>
<table border="0" width="100%" id="table15" cellspacing="0" cellpadding="0">
<tr>
<td width="232"> </td>
<td>
<input type="reset" value="Nulstil" name="reset" style="font-family: Verdana; color: #000000; font-size: 8pt; border: 1px solid #333333; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #C0C0C0">
<input type="submit" value="Send" name="send" style="font-family: Verdana; color: #000000; font-size: 8pt; border: 1px solid #333333; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #C0C0C0"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
<td width="%"> </td>
</tr>
</table>
<?
}
?>
</body>
</html>
<?
ob_end_flush();
?>
