Thanks for your reply,
Sorry i didn’t provide a code at the time i asked for help my code was too messy but i’ll post now.
I have this table done like this:
<table>
<tr>
<th><b>Zemlja</b></th>
<th><b>Destinacija</b></th>
<th><b>Tip Putovanja</b></th>
<th><b>Tip Transporta</b></th>
<th><b>Datum polaska</b></th>
<th><b>Datum povratka</b></th>
<th><b>Cena</b></th>
<th><b>Obrisi</b></th>
<th><b>ID</b></th>
</tr>
[php]
<?php
while($rows = mysql_fetch_array($result))
{
?>
[/php]
<tr>
<td><?php echo $rows['Zemlja']; ?></td>
<td><?php echo $rows['Destinacija']; ?></td>
<td><?php echo $rows['Tip_Putovanja']; ?></td>
<td><?php echo $rows['Tip_transporta']; ?></td>
<td><?php echo $rows['Polazak']; ?></td>
<td><?php echo $rows['Povratak']; ?></td>
<td><?php echo $rows['Cena']; ?></td>
<td><input type="checkbox" name="checkbox[]" value="<?php echo $rows['ID'] ?>"></td>
<td><?php echo $rows['ID']; ?></td>
</tr>
[php]
<?php
}
?>
[/php]
</table>
Now that row where is input for check box, i named it “checkbox[]” as it can be seen, but now i want that every check box have its value numbered by AUTO INCREMENT-ed ID from database table, and post it to another PHP page where i could delete all the selected check box-es that match the ID or value that it has been set to?
Right now my POST page have only one variable that goes like:
[php]
$selekt = $_POST[‘checkbox’];
[/php]
And whenever I tried to make it be an array I kept getting that error “undefined offset 1”. I’ll try to see and use ur code that u posted and i’ll come back later , hopefully, with some solution and post it here. Untill then i’d appriciate help again if this made my problem clearer.
Thanks
Dushan