Witam.
Mam pewien problem z formularzem.
Zawarte są w nim np 3 wiersze z inputami do edycji.
(ilość wierszy z inputami tekstowymi generowana jest na podstawie danych pobieranych z bazy gdzie w pętli while dodawane są kolejne wiersze tabeli).
Po użyciu submitu przechodzę do następnej strony gdzie testowo chciałem wyświetlić zawartość tablicy $_POST
przy pomocy print_r($_POST).
Problem w tym, że wyświetlona tablica zawiera tylko jeden zestaw danych (ostatni) a nie wszystkie trzy.
Nie bardzo wiem jak zbudować pętlę, która pozwoli mi modyfikować przesłane dane w bazie (ba nawet nie umiem wyświetlić całej zawartości tablicy żeby coś pokombinować).
Nazwy przenoszonych zmienny są takie same, zmieniają się tylko wartości Value które ze sobą niosą.
Kawałek kodu z formularza
<td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: left;">MOD-MGLX10
</td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: center;"><input name="ile_szt" value="1" style="width: 50px;" type="text"></td>
<td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: right;"> <input name="cena_netto_sztuki" value="375.00" style="width: 80px;" type="text"></td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: right;"><p style="width: 110px;">375,00
</p></td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: right;"><p style="width: 150px;">457,50
</p></td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: left;">MOD-MGL10B
</td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: center;"><input name="ile_szt" value="1" style="width: 50px;" type="text"></td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: right;"> <input name="cena_netto_sztuki" value="1418.00" style="width: 80px;" type="text"></td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: right;"><p style="width: 110px;">1418,00
</p></td>
<td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: right;"><p style="width: 150px;">1729,96
</p></td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: left;">MOD-GLX20
</td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: center;"><input name="ile_szt" value="1" style="width: 50px;" type="text"></td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: right;"> <input name="cena_netto_sztuki" value="360.00" style="width: 80px;" type="text"></td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: right;"><p style="width: 110px;">360,00
</p></td> <td style="border-bottom: 1px solid rgb(0, 0, 0); padding: 5px; color: rgb(255, 255, 255); font-size: 11px; background-color: rgb(0, 68, 255); text-align: right;"><p style="width: 150px;">439,20
</p>
Proszę uprzejmie o pomoc.
Pozdrawiam
ermar