Witam, mam kod tabelki:
echo "<th width=100 align=center>Data rozliczenia</th>";
echo "<th width=100 align=center>Status</th>";
echo "<th width=100 align=center><div id=noprint>Udostępnij</div></th>";
echo "<th width=50 align=center>";
?>
<form name="pozycje" id="pozycje" action="aaaa.php" target="_blank" method="post">
<input type="image" style="width: 22px; height: 22px" src="img/ikony/printer.png" alt="Drukuj zaznaczone" title="Drukuj zaznaczone" /></th>
<?
$i = 0;
$k = $from;
{
$i++;
$k++;
echo '<form method="POST" action="">'; echo '<input type=hidden name="id_odst" value="'.$r[id_odst
].'"></input>';
...............................................................
if(($r['status']) == Rozliczony ){
echo "<td width=100 align=center bgcolor=.red.>".$r[status
]."</td>"; else
{
echo "<td width=100 align=center>".$r[status
]."</td>";
if ($r['udostepnij'] == 0){
echo "<td width=100 align=center><div id=noprint> <action=\"rejtest.php\">
<input type=hidden name=a value=udostepnij_on>
<input type=hidden name=\"udostepnij_on\" value=\"0\">
<button type=submit value=Zatwierdź>
<img src=img/ikony/no.png title=\"Niewidoczny\" style=width:15px;height:15px;border:5px; />
</div></button></td>";
}
else
echo "<td width=100 align=center><div id=noprint> <action=\"rejtest.php\">
<input type=hidden name=a value=udostepnij_off>
<input type=hidden name=\"udostepnij_off\" value=\"1\">
<button type=submit value=Zatwierdź>
<img src=img/ikony/ok.png title=\"Widoczny\" style=width:15px;height:15px;border:5px; />
</div></button></td>"; }
echo '<td align="center" width="10px">'; echo '<input type="checkbox" name="drukuj[]" value="'.$r[id_odst
].'" /></input>';
if($r['wydruk']=='1') {
echo "<td width=50 align=center><font color=\"black\"><small>Tak</small></font></td>"; }
if($r['wydruk']!='1') {
echo "<td width=50 align=center><font color=\"red\"><small>Nie</small></font></td>"; }
...........................................
}}
}
Wewnątrz rekordów tabeli mam forma który wprowadza mi zmiany do bazy dotyczące danego rekordu. Teraz chciałbym aby przed pętlą while ustawić jeszcze jeden formularz który "zbierałby" mi wszystkie zaznaczone checkboxy w rekordach poniżej, ale zawsze działa jeden formularz. Wyczytałem że nie powinno się robić forma w formie. Jakie więc inne rozwiązanie byłoby właściwe dla mojego problemu?