Blank side efter submit (Kontakt formular)
Kontakt.php<?php
echo"
<form enctype=\"multipart/form-data\" action=\"sender.php\" method=\"post\">
<table width=\"100\" border=\"0\">
<tr>
<td><table width=\"407\" height=\"266\" border=\"0\">
<tr valign=\"top\">
<td width=\"92\" height=\"21\"><font color=\"#555555\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Navn:</font></td>
<td width=\"305\"><input name=\"brugernavn\" type=\"text\" id=\"t1\"></td>
</tr>
<tr valign=\"top\">
<td height=\"21\"><font color=\"#555555\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Email:</font></td>
<td><input name=\"mail\" type=\"text\" id=\"t2\"></td>
</tr>
<tr valign=\"top\">
<td height=\"21\"><font color=\"#555555\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Emne:</font></td>
<td><input name=\"subject\" type=\"text\" id=\"t3\"></td>
</tr>
<tr valign=\"top\">
<td height=\"21\" rowspan=\"2\"><font color=\"#555555\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Verifikation:</font></td><td><img src=\"verify.php\" alt=\"auth\" /></td>
</tr>
<tr valign=\"top\">
<td><span style=\"float:left;margin-right=10px;\">
<input type=\"password\" id=\"auth\" name=\"auth\">
</span></td>
</tr>
<tr valign=\"top\">
<td height=\"184\"><font color=\"#555555\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">Besked:</font></td>
<td><textarea name=\"tekst\" cols=\"45\" rows=\"10\" id=\"t4\"></textarea></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width=\"203\" border=\"0\">
<tr>
<td width=\"52\"><input type=\"submit\" name=\"Submit\" value=\"Send\"></td>
<td width=\"141\"><input type=\"reset\" name=\"Submit2\" value=\"Slet alt\"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>";
?>
sender.php
<?php
session_start();
$ip = getenv('REMOTE_ADDR');
$ipadr = "IP Adresse: http://www.ripe.net/perl/whois?searchtext=$ip";
if (isset($_POST['submit'])) {
if($_SESSION['verify'] == strtoupper($_POST['auth'])) {
if ($brugernavn == '') { die ('<strong>ERROR</strong>: Please enter a name.<br><a href=java script:history.back()>Gå tilbage</a>'); }
if ($mail == '') { die('<strong>ERROR</strong>: Please type your e-mail address.<br><a href=java script:history.back()>Gå tilbage</a>'); }
if ($tekst == '') { die('<strong>ERROR</strong>: Please enter a message!<br><a href=java script:history.back()>Gå tilbage</a>'); }
if ($subject == '') { die('<strong>ERROR</strong>: Please enter a subject!<br><a href=java script:history.back()>Gå tilbage</a>'); }
if ($auth == '') { die('<strong>ERROR</strong>: Please enter a Verifikation!<br><a href=java script:history.back()>Gå tilbage</a>'); }
if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$", $mail)) { die('<strong>ERROR</strong>: Please make a real mail.<br><a href=java script:history.back()>Gå tilbage</a>'); }
if (empty($_SERVER['HTTP_USER_AGENT'])) { die('<strong>ERROR</strong>: Very funny.<br><a href=java script:history.back()>Gå tilbage</a>'); }
else {
mail("mymail.dk", "$subject", "Navn: $navn\nMail: $mail\nIP Adresse: http://www.ripe.net/perl/whois?searchtext=$ip\nBesked: \n$tekst", "From:Kontakt");
}
}
}
?>
Der kommer bare blank side frem, hvad har jeg gjort galt? :|