Hej, denne fil skulle gøre således at en "admin" kan ændre i andres profiler, men når jeg klikker på et "ret profil" link, kommer der kun en blank side, og jeg kan meget simpelt ikke finde fejlen.
<html>
<head>
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<?php
include("access.php");
session_start();
if ($_SESSION['status'] == "admin")
{
if(isset($_GET['id'])) {
$id = $_GET["id"];
$sql = "SELECT * FROM login WHERE id=$id";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<table width="250" border="0" cellspacing="0" cellpadding="0">
<form action="adm_profil_ret_ok.php?id=<? echo $row[id]; ?>" method="post">
<input type=hidden name="id" value="<? echo $row[id]; ?>">
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Brugernavn:</td>
<td><b><? echo $row["user"]; ?></b></font></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Kodeord:</td>
<td>SSSSH!</font></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">E-Mail:</font></td>
<td><INPUT TYPE="TEXT" NAME="email" class="input" VALUE="<?php echo $row["email"] ?>"></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Alder:</font></td>
<td><INPUT TYPE="TEXT" NAME="alder" class="input" VALUE="<? echo $row["alder"] ?>"></td>
</tr>
<tr>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Bopael:</font></td>
<td><INPUT TYPE="TEXT" NAME="bopael" class="input" VALUE="<?php echo $row["bopael"] ?>"></td>
</tr>
<tr>
<td><select size="1" name="admin" width="100" class="input">
<option><? echo $row[admin]; ?></option>
<option value="1">Bruger</option>
<option value="9">Admin</option>
</select></td>
</tr>
</table>
<input type="submit" name="submit" class="submit" value="Ret profil">
</form>
<?
}
}
else
{
print(" <script language='javascript'>
location.href='logind.php';
</script>");
}
?>
</body>
</html>