Formular übergibt Daten nicht

Sven4972

Mitglied
Hallo,

ich glaub ich seh den Fehler hier nicht.
Es werden keine Daten an die Datei aus.php übergeben.

Code:
<form method="post" action="aus.php">
<table class="style3" style="width: 750px; height: 200px;">
  <tr>
    <td class="style2" style="width: 125px; height: 50px;">&nbsp;</td>
    <td class="style2" style="width: 125px; height: 50px;"><strong>Spieler</strong></td>
    <td class="style2" style="width: 125px; height: 50px;"><strong>Spielpunkte</strong></td>
    <td class="style2" style="width: 125px; height: 50px;"><strong>gewonnen</strong></td>
    <td class="style2" style="width: 125px; height: 50px;"><strong>verloren</strong></td>
    <td class="style2" style="width: 125px; height: 50px;"><strong>Turnierpunkte</strong></td>
  </tr>
  <tr>
    <td class="style2" style="width: 125px; height: 50px;"><strong>Spieler 1</strong></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="15" name="Nick1" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="5" name="sp1" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="2" name="g1" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="2" name="v1" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="5" name="tp1" /></td>
  </tr>
  <tr>
    <td class="style2" style="width: 125px; height: 50px;"><strong>Spieler 2</strong></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="15" name="Nick2" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="5" name="sp2" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="2" name="g2" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="2" name="v2" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="5" name="tp1" /></td>
  </tr>
  <tr>
    <td class="style2" style="width: 125px; height: 50px;"><strong>Spieler 3</strong></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="15" name="Nick3" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="5" name="sp2" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="2" name="g3" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="2" name="v3" /></td>
    <td class="style2" style="width: 125px; height: 50px;"><input size="5" name="tp3" /></td>
  </tr>
</table>
<br />
<table style="width: 650px; height: 175px">
  <tr>
    <td style="width: 180px; height: 25px" class="style1">&nbsp;</td>
    <td class="style1" style="width: 70px; height: 25px"><strong>Tag</strong></td>
    <td class="style1" style="width: 10px; height: 25px">&nbsp;</td>
    <td class="style1" style="width: 70px; height: 25px"><strong>Monat</strong></td>
    <td class="style1" style="width: 10px; height: 25px">&nbsp;</td>
    <td class="style1" style="width: 70px; height: 25px"><strong>Jahr</strong></td>
    <td class="style1" style="width: 10px; height: 25px" colspan="2">&nbsp;</td>
    <td class="style1" style="width: 70px; height: 25px"><strong>Stunde</strong></td>
    <td class="style1" style="width: 10px; height: 25px">&nbsp;</td>
    <td class="style1" style="width: 70px; height: 25px"><strong>Minute</strong></td>
    <td class="style1" style="width: 10px; height: 25px">&nbsp;</td>
    <td class="style1" style="width: 70px; height: 25px"><strong>Sekunde</strong></td>
  </tr>
  <tr>
    <td class="style1" style="width: 180px; height: 25px"><strong>
			Listenbeginn:</strong></td>
    <td class="style1" style="width: 70px; height: 25px"><input size="2" name="tag" /></td>
    <td class="style1" style="width: 10px; height: 25px"><strong>.</strong></td>
    <td class="style1" style="width: 70px; height: 25px"><input size="2" name="monat" /></td>
    <td class="style1" style="width: 10px; height: 25px"><strong>.</strong></td>
    <td class="style1" style="width: 70px; height: 25px"><input size="4" name="jahr" /></td>
    <td class="style1" style="width: 10px; height: 25px" colspan="2"><strong>-</strong></td>
    <td class="style1" style="width: 70px; height: 25px"><input size="2" name="stunde" /></td>
    <td class="style1" style="width: 10px; height: 25px"><strong>:</strong></td>
    <td class="style1" style="width: 70px; height: 25px"><input size="2" name="minute" /></td>
    <td class="style1" style="width: 10px; height: 25px"><strong>:</strong></td>
    <td class="style1" style="width: 70px; height: 25px"><input size="2" name="sekunde" /></td>
  </tr>
  <tr>
    <td style="width: 180px; height: 25px" class="style1">&nbsp;</td>
    <td class="style1" colspan="12" style="height: 25px"><strong>
			Beispiel: 10.10.2009 - 12:00:00</strong></td>
  </tr>
  <tr>
    <td style="width: 180px; height: 25px" class="style1">&nbsp;</td>
    <td class="style4" style="height: 25px" colspan="12"><strong>Wenn 
 			die Eingaben kleiner als 10 sind, bitte die 0 mit davor schreiben !</strong></td>
  </tr>
  <tr>
    <td style="width: 180px; height: 25px" class="style1"><strong>
			Eingepasst:</strong></td>
    <td class="style5" style="height: 25px" colspan="12"><input size="2" name="es" /></td>
  </tr>
  <tr>
    <td style="width: 180px; height: 25px" class="style1"><strong>Dein 
			Nickname:</strong></td>
    <td class="style5" style="height: 25px" colspan="12"><input size="35" name="Nicksender" /></td>
  </tr>
  <tr>
    <td style="width: 180px; height: 25px" class="style1"><strong>Deine 
			Mailadresse:</strong></td>
    <td class="style5" style="height: 25px" colspan="12"><input size="35" name="mail" /></td>
  </tr>
  <tr>
    <td style="height: 25px" class="style1" colspan="13">&nbsp;</td>
  </tr>
  <tr>
    <td style="width: 180px; height: 25px" class="style1">&nbsp;</td>
    <td class="style5" style="height: 25px" colspan="6"><input value="Abschicken" type="submit" /></td>
    <td class="style5" style="height: 25px" colspan="6"><input value="Daten l&ouml;schen" type="reset" /></td>
  </tr>
</table>
</form>

In der aus.php wollte ich erstmal nur Testausgaben machen:

PHP:
<?php
echo $Nick1;
echo "<br>";
echo $Nick2;
echo "<br>";
echo $Nick3;
echo "<br>";
echo $sp1;
echo "<br>";
echo $sp2;
echo "<br>";
echo $sp3;
echo "<br>";
echo $g1;
echo "<br>";
echo $g2;
echo "<br>";
echo $g3;
echo "<br>";
echo $v1;
echo "<br>";
echo $v2;
echo "<br>";
echo $v3;
echo "<br>";
echo $tp1;
echo "<br>";
echo $tp2;
echo "<br>";
echo $tp3;
echo "<br>";
echo $es;
echo "<br>";
echo $Nicksender;
echo "<br>";
echo $mail;
echo "<br>";
?>

Da kommt aber nichts an.

Wo liegt mein Fehler?


LG Sven
 
Und wenn du es dir selbst einfach machen willst, verwende folgendes:
HTML:
<input type="text" name="Name[]" />
<input type="text" name="Name[]" />
<input type="text" name="Name[]" />

In PHP findest du die Inhalte dann der Reihe nach so wieder:
PHP:
echo $_POST['Name'][0];
echo $_POST['Name'][1];
echo $_POST['Name'][2];
 
Und wenn du es dir selbst einfach machen willst, verwende folgendes:
HTML:
<input type="text" name="Name[]" />
<input type="text" name="Name[]" />
<input type="text" name="Name[]" />

In PHP findest du die Inhalte dann der Reihe nach so wieder:
PHP:
echo $_POST['Name'][0];
echo $_POST['Name'][1];
echo $_POST['Name'][2];

Ja das hat m.M.n. seine Vor- und Nachteile.
In deinem Fall ist es so aber warscheinlich am praktischten.
 
Zurück