jeg er ved at lave en side til en spil klan
de vil have det sådan at bestemte personer kan tilføje medlemmer, kampe osv osv på siden uden at have adgang til noget (ftp osv osv)
så har lavet et lille script der sætter det ind på deres database
men når jeg tester siden virker den ikke
der kommer ingen fejl... bare en blank side
<?php
include("config.php");
if (!$_POST['submit']) {
echo ("
<form method=\\"post\\">
<div align=\\"center\\">Opponent:
<input type=\\"text\\" name=\\"opponent\\"><input type=\\"hidden\\" name=\\"game\\" value=\\"dayofdefeat\\">
<table width=\\"80%\\" cellpadding=\\"3\\" cellspacing=\\"3\\">
<tr>
<td align=\\"right\\">First Map:</td>
<td><input type=\\"text\\" name=\\"firstmap\\"></td>
<td align=\\"right\\">Rounds Won:</td>
<td><input type=\\"text\\" name=\\"firstwon\\" size="5" maxlength="2"></td>
<td align=\\"right\\">Rounds Lost:</td>
<td><input type=\\"text\\" name=\\"firstlost\\" size="5" maxlength="2"></td>
</tr>
<tr>
<td align=\\"right\\">Second Map:</td>
<td><input type=\\"text\\" name=\\"secondmap\\"></td>
<td align=\\"right\\">Rounds Won:</td>
<td><input type=\\"text\\" name=\\"secondwon\\" size="5" maxlength="2"></td>
<td align=\\"right\\">Rounds Lost:</td>
<td><input type=\\"text\\" name=\\"secondlost\\" size="5" maxlength="2"></td>
</tr>
</table>
War Result:
<select name=\\"result\\">
<option value=\\"won\\" selected>Won</option>
<option value=\\"lost\\">Lost</option>
</select>
<input type=\\"submit\\" name=\\"submit\\" Value=\\"Submit\\"></div>
</form>");
}else{
$opponent = $_POST['opponent'];
$firstmap = $_POST['firstmap'];
$firstwon = $_POST['firstwon'];
$firstwon = $_POST['firslost'];
$secondmap = $_POST['secondmap'];
$secondwon = $_POST['secondwon'];
$secondlost = $_POST['secondlost'];
$result = $_POST['result'];
$game = $_POST['game'];
$addsql = "INSERT into war (opponent,firstmap,firstwon,firstlost,secondmap,secondwon,secondlost,result,game)
VALUES('$opponent','$firstmap','$firstwon','$firstlost','$secondmap','$secondwon','$secondlost','$result','$game')";
$addmembers = mysql_query($addsql)
or die(mysql_error());
echo "War has been sumbitted.";
}
?>
nogen der kan se hvad fejlen er???