delete form
Jeg kan ikke få den til at slette denne "form". Siden kommer fint nok frem, men der sker ikke noget når jeg trykker på knappen "Slet"<?php
$mode = $_GET["mode"];
if($_GET[action] == "slet"){
require("../config.php");
connect();
$slet_holdmedlem = $_GET["slet_holdmedlem"];
$query = mysql_query("delete * from riberep_holdet where navn='".$slet_holdmedlem."'");
} else {
require("../config.php");
connect();
$slet_holdmedlem = $_GET["slet_holdmedlem"];
$query = mysql_query("select * from riberep_holdet where navn = '".$slet_holdmedlem."'");
$getter = mysql_fetch_array($query);
?>
?>
<html>
</head>
<title>Ribe Rep</title>
<link rel="stylesheet" type="text/css" href="../style.css" />
<body topmargin="0" leftmargin="0">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" id="Index ramme">
<tr>
<td width="34%" valign="top" class='vside'> </td>
<td width="33%" valign="top" bgcolor='#FFFFFF'>
<!--Logo / dato tabel start-->
<?php include ("../../inc/dato.php"); ?>
<!--Logo / dato tabel slut-->
<!--Top banner start-->
<?php include ("../../inc/top.php"); ?>
<!--Top banner slut-->
<!--Menu start-->
<?php include ("../inc/menu1.php"); ?>
<!--Menu slut-->
<table border="0" cellpadding="0" cellspacing="0" width="700" id="Hoved tabel" height="100%">
<tr>
<td width="100%" valign='top' style='padding-left: 5px;'>
<!--Index start-->
<br><span class='header'><?echo $getter[navn]?></span>
<br><br>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#CCCCCC" width="100%" id="AutoNumber2">
<tr>
<td width="33%" height="23" bordercolor="#999999"><span class='subheader'>Vil
du slette</span></td>
<td width="67%" height="23" class="m">
<?echo $getter[navn]?>
</td>
</tr>
</table>
<div align="center"><br>
<input name="submit" type="submit" value="Slet">
<input type="button" value="Fortryd" onclick='location.href="holdet1.php"'>
</form>
</div>
<!--Index slut-->
</td>
</tr>
</table>
<br>
</td>
<td width="33%" valign="bottom" class='hside' align='right'>
</td>
</tr>
</table>
</body>
</html>
<?
}
?>
