<?php
include ("database.php");
$qry = "Select * from tbnam where $option like '%$content%'";
$result=mysql_query($qry);
while ($row =mysql_fetch_array($result))
{
$id=$row['id'];
?>
//creating table
<tr><?echo "<td><input type=\"checkbox\" name=\"checkbox[]\" id=\"checkbox[]\" value=\"".$row['id']."\" /></td>";?>
<td><? echo $row['name'];?></td>
<td><? echo $row['address'];?></td>
<td><? echo $row['email'];?></td>
<td><? echo $row['telephone'];?></td>
<td><? echo $row['problem'];?></td>
<td><? echo $row['reply_query'];?></td>
<td><? echo $row['type'];?></td>
<td><? echo $row['other'];?></td></tr>
<?php
}
?>
<input type="submit" name="search" value="Print" size="10"/>
</form>
</table>
how i got the checkbox values? any need of passing $id in checkbox[] array ? if yes how it is possible? help me...name=\"checkbox["\".$id"\"]\"
var_dump($_POST['checkbox']);.includedoes not need the().