What is wron with this code?
<?
$form="<form name=form1 method=post action=>
<table width=50% >
<tr>
<th colspan=2 scope=col><p>LOG IN </p>
<p>
<input name=seen type=hidden id=seen value=da>
</p></th>
</tr>
<tr>
<th width=24% class=login_ostalo scope=row><div align=left>Username:</div></th>
<td width=76%><input name=username type=text id=username></td>
</tr>
<tr>
<th class=login_ostalo scope=row><div align=left>Password:</div></th>
<td><input name=password type=password id=password></td>
</tr>
<tr>
<th scope=row> </th>
<td class=login_autologin><p>Use Auto-login:
<input name=autologin type=checkbox id=autologin value=autologin checked>
<br>
</p> </td>
</tr>
<tr>
<th scope=row> </th>
<td class=login_ostalo> <p>
<input type=submit name=Submit value=Login>
</p>
<p><strong><a href=lost_login.php>(Forgot your password/ID?) </a></strong> </p></td>
</tr>
</table>
</form>";
if (($seen!="da") && (!isset($kuki))) print $form;
elseif(($seen=="da") && (!isset($kuki))){
include("require/config.php");
mysql_select_db($db_name) or die ("could not select database");
$result=mysql_query("SELECT * FROM `users` WHERE username='$username'") or die ("Could not query database");
$roba=mysql_result($result,0,'password');
if ($roba==$password) {
if ($autologin=="autologin")
setcookie("kuki",$username,time()+600) or die ("nebrem autologin");
else setcookie("kuki",`$username`,time()+10) or die ("nebrem ne");
}
else print "krivi username ili password";}
if (isset($kuki)){
$db_host = "localhost";
$db_user = "root";
$db_pass = "";
$db_name = "ptr";
$tb_users = "users";
mysql_connect ($db_host, $db_user, $db_pass) or die ("Could not connect to MySQL server <b>$db_host</b>");
mysql_select_db($db_name) or die ("could not select database");
$result=mysql_query("SELECT * FROM `users` WHERE username='$user'") or die ("Could not query database");
$roba=mysql_result($result,0,'fname');
print "Hello $roba";
}
?>