Den vil ikke sende ud til mysql..
<html><head>
<title>Denner // Copyright 2006 [Admin]</title>
</head>
<body>
<?
include ("sb.php");
if (!((isset($ProtectionUserName)) and (isset($ProtectionPassword)))) {?>
<div align="center"><h4>Overabejde for Dennis E. Nielsen.</h4></div>
<hr>
<form enctype="multipart/form-data" action="<?=$PHP_SELF?>" method="post">
<table align="center" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="center"><strong>ID nummer:</strong></td>
<td align="center"><input type="text" name="ProtectionUserName"></td>
</tr>
<tr>
<td align="center"><strong>Password:</strong></td>
<td align="center"><input type="password" name="ProtectionPassword"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="Login" value="Login"></td>
</td>
</tr>
</table>
</form>
<?
}
elseif (($ProtectionUserName==$AdminUserName) and ($ProtectionPassword==$AdminPassword)) {
$Handler = @mysql_connect($MySQLserver,$MySQLusername,$MySQLpassword);
@mysql_select_db($MySQLdatabase, $Handler);
?>
<table width="268" border="0" cellpadding="2" cellspacing="2">
<tr>
<td width="94">Dato:</td>
<td width="160"><input name="dato" type="text" id="dato"></td>
</tr>
<tr>
<td>Dag:</td>
<td><input name="dag" type="text" id="dag"> </td>
</tr>
<tr>
<td>Tid:</td>
<td><input name="tid" type="text" id="tid"> </td>
</tr>
<tr>
<td>Plus tider:</td>
<td><input name="plus_tider" type="text" id="plus_tider"> </td>
</tr>
<tr>
<td>Minus tider::</td>
<td><input name="minus_tider" type="text" id="minus_tider"> </td>
</tr>
<tr>
<td>Begrundelse:</td>
<td><textarea name="Begrundelse" id="Begrundelse"></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="Submit" value="Tilføj dag"></td>
</tr>
</table>
<input type="hidden" name="ProtectionUserName" value="<?=$ProtectionUserName?>">
<input type="hidden" name="ProtectionPassword" value="<?=$ProtectionPassword?>">
<?
}
if ($Submit) {
mysql_query("INSERT INTO `SuperBest` (`Dato` , `Dag` , `Tid` , `plus_tider` , `minus_tider` , `Begrundelse` )
VALUES ('$_POST[dato]', '$_POST[dag]' , '$_POST[tid]' , '$_POST[plus_tider]' , '$_POST[minus_tider]' , '$_POST[signatur]')") OR DIE (mysql_error());
mysql_close;
}
?>
<?php include("superbest.php"); ?>
</body>
</html>
Hvad er der galt? :S Den sender ikke når man har trykket på Tilføj Dag
