I have a table with content fetched from a html table. I have a modify and delete column.

In the modify column I have submit forms which send as hidden input the id of the column.

In the delete column I want to have checkboxes that will be linked to another submit button, outside the table.

I do not know how to do this, particularly to separate forums on rows for the modify column, and make all the rows in the delete column part of the same form.

This is the current form of the table:

$resource=$registre->query($query);
	header();
	while($row=$resource->fetch_row()){
		$data1=explode('-',$row[1]);
		$data2=explode('-',$row[5]);
		$data3=explode('-',$row[7]);
		echo "<tr>
							<td>$row[0]</td>
							<td>$data1[2]</td>
							<td>$data1[1]</td>
							<td>$data1[0]</td>
							<td>$row[2]</td>
							<td>$row[3]</td>
							<td>$row[4]</td>
							<td>$data2[2]</td>
							<td>$data2[1]</td>
							<td>$data2[0]</td>
							<td>$row[6]</td>
							<td>$data3[2]</td>
							<td>$data3[1]</td>
							<td>$data3[0]</td>
<td><form action='furnizori.php' method='post'>
<input type='hidden' name='inserted' value='1'>
//row[8] is the id of the row 
<input type='hidden' name='modify_id' value='$row[8]'><input type='submit' value='Modificy'></form></td>
<td><form action='furnizori.php' method='post'>
<input type='hidden' name='inserted' value='1'>
<input type='hidden' name='delete_id' value=''>
<input type='checkbox' value='$row[8]'></form></td>
</tr>";
	}
	echo "</table>";

anybody?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.