nie wiem jak mam odebrać wszystkie dane wysyłane z tego formularza. Pojedyncze dane ładnie się odbierają, ale przy większej ilości niestety już nic nie otrzymuje. Jak widać według poniższego kodu ilość danych z formularzy może ulegać zmianie.
Kod
if(count($wybierz)>0 && count($ile)>0)
{
foreach($wybierz as $licz['1'])
{
$zapytanie = "select id, nazwa, opis from `paragraf` where nazwa='".$licz['1']."'";
$wykonaj = mysql_query($zapytanie);
while( $opis=mysql_fetch_array($wykonaj))
{
$id=$opis['id'];
echo "</br><table border=1 align=center><tr class=nagl_m>
<td width=743 align=center>Paragraf: $opis[1] </br> $opis[2]</td></tr></table>";
echo "<table border=1 align=center><tr class=gora>
<td width=35 align=center>Lp</td>
<td width=70 align=center>Pozycja</td>
<td width=497 align=center>Opis</td>
<td width=125 align=center>Wartosc /</br>Zaangazowanie</td>
</tr></table>";
$poz=$ile[$id];
for($i=0; $i<$poz; ++$i)
{
$lp1=$i+1;
echo "<table border=1 align=center><tr class=gora>
<td width=35 align=center>$lp1</td>
<td width=70 align=center>
<select name=pozycja[]>
<option value=000>000
<option value=010>010
<option value=020>020
<option value=030>030
<option value=040>040
<option value=050>050
<option value=060>060
<option value=070>070
<option value=080>080
<option value=090>090
<option value=100>100
<option value=110>110
<option value=120>120
</option>
</select>
</td>
<td width=250 align=center><input type=text name=opis[] maxlength=255 size=77></td>
<td width=100 align=center><input type=text name=kwota[] maxlength=9,2 size=15></td>
</tr></table>";
}
{
foreach($wybierz as $licz['1'])
{
$zapytanie = "select id, nazwa, opis from `paragraf` where nazwa='".$licz['1']."'";
$wykonaj = mysql_query($zapytanie);
while( $opis=mysql_fetch_array($wykonaj))
{
$id=$opis['id'];
echo "</br><table border=1 align=center><tr class=nagl_m>
<td width=743 align=center>Paragraf: $opis[1] </br> $opis[2]</td></tr></table>";
echo "<table border=1 align=center><tr class=gora>
<td width=35 align=center>Lp</td>
<td width=70 align=center>Pozycja</td>
<td width=497 align=center>Opis</td>
<td width=125 align=center>Wartosc /</br>Zaangazowanie</td>
</tr></table>";
$poz=$ile[$id];
for($i=0; $i<$poz; ++$i)
{
$lp1=$i+1;
echo "<table border=1 align=center><tr class=gora>
<td width=35 align=center>$lp1</td>
<td width=70 align=center>
<select name=pozycja[]>
<option value=000>000
<option value=010>010
<option value=020>020
<option value=030>030
<option value=040>040
<option value=050>050
<option value=060>060
<option value=070>070
<option value=080>080
<option value=090>090
<option value=100>100
<option value=110>110
<option value=120>120
</option>
</select>
</td>
<td width=250 align=center><input type=text name=opis[] maxlength=255 size=77></td>
<td width=100 align=center><input type=text name=kwota[] maxlength=9,2 size=15></td>
</tr></table>";
}
nadmienie jeszcze, że przechodzą wszystkie dane, sprawdziłem to funkcją print_r($_POST).
proszę o pomoc jak mam to odebrać i dane zapisać do bazy ?