Eingabefeld Array

Kite-X

Grünschnabel
So ich habe folgendes Problem ich habe ein Formular mit 400 Eingabefeldern (ist eine Monatsplanung) kann diese 400 mir einer Schleife in ein Variablen Array tun und dann in eine Datenbank schreiben.
Meine Eingabe Felder habe ich durchnummeriert für schleifen

PHP:
td width="20%"><input type="Text" name="36" value="" size="" 

maxlength="">  </td>
    <td width="20%"><input type="Text" name="37" value="" size="" 

maxlength="">  </td>
    <td width="20%"><input type="Text" name="38" value="" size="" 

maxlength="">  </td>
    <td width="20%"><input type="Text" name="39" value="" size="" 

maxlength="">  </td>


Bitte um schnelle Hilfe
 
Ich rate mal und denke er sucht $_POST oder so. Aber aus seinem Post geht echt nichts hervor. Also bitte um Aufklärung oder zukünftige Meidung des Forums :p
 
Hiho.

Das zum Erzeugen der Felder:
PHP:
for ($i = 0; $i < 400; $i++) {
  echo "<input name=\"feld_name[".$i."]\" type=\"text\" value=\"\">";
}


Das zum Auslesen (wenn es ein POST-Formular ist):

PHP:
foreach ($_POST["feld_name"] AS $feld_id => $feld_inhalt) {
  mach_was_mit_den_daten();
}

Grüße, ronin
 
Danke schon mal

so ich habe aber vor manchen inputboxen noch etwas stehen.

Mein Quellcode:

HTML:
<html>

<head>
<meta http-equiv="Content-Language" content="de">

</head>

<body>
<form action="" method="" target="">
<p align="center"><input type="Text" name="" value="" size="" maxlength=""></p>

<p align="center"><img border="0" src="img1.jpg" width="416" height="208"></p>

<p align="center"><b><font size="6">Personalplanung</font></b></p>

<p><input type="Text" name="" value="" size="" maxlength=""></p>
<table cellpadding="0" cellspacing="0" width="100%" height="188" bordercolor="#000000" style="border-collapse: collapse">
  <tr>
    <td width="230" bgcolor="#C0C0C0" align="center" height="21">
    <b>Bereich</b></td>
    <td width="231" bgcolor="#C0C0C0" align="center" height="21">
    <b>Donnerstag </b></td>
    <td width="231" bgcolor="#C0C0C0" align="center" height="21">
    <b>Freitag </b></td>
    <td width="231" bgcolor="#C0C0C0" align="center" height="21">
    <b>Samstag </b></td>
    <td width="231" bgcolor="#C0C0C0" align="center" height="21">
    <b>Sonderöffnugstag </b></td>
  </tr>
  <tr>
    <td width="230" height="22">
    Kasse (Eingang)</td>
    <td width="231" height="22"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="22"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="22"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="22"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="230" height="21">
    Kasse (Eingang)</td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="230" height="21">
    Kasse (Ausgang)</td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="230" height="19">
    Kasse (Ausgang)</td>
    <td width="231" height="19"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="19"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="19"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="19"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="230" height="21">
    Garderobe</td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="230" height="21">
    Garderobe</td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="230" height="21">
    Clubcard</td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="230" height="21">WC</td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="231" height="21"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
</table>
<br><b>Soulclub Große Theke</b>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
</table>
<br><b>Soulclub Kleine Theke</b><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
</table>
<br><b>Stadl Große Theke</b>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
</table>
<br><b>Stadl Kleine Theke</b><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Theke</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
</table>
<br><b>Gläser</b><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
  <tr>
    <td width="20%">Gläser</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Gläser</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Gläser</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
  <tr>
    <td width="20%">Gläser</td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
    <td width="20%"><input type="Text" name="" value="" size="" maxlength=""></td>
  </tr>
</table></form>
</body>

</html>



Ich beabsichtige jedes Eingabefeld in eine Datenbank einzulesen. Wie kann ich dies am schnellsten realiesieren.
 
Zurück