Hi Every 1..!

I m new in DaniWeb plz help me out by solving my problm spcific to PHP (checkbox control).
I want delete multilple data from mysql using php form checkbox control.
I want to display data in a table as i did and then want to select multiple choices using checkboxs to delete it.

Consider the following:

			echo "<br>".$_POST['checkbox'.$i];

<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<form name="form1" method="post" action="">
  <table width="301" height="129" border="1" cellpadding="0" cellspacing="1">
      <td width="21"><strong>Sl</strong></td>
      <td width="245"><strong>Item</strong></td>
      <td width="31"><strong>Tick</strong></td>
      <td><input type="checkbox" name="checkbox1" value="Apple"></td>
      <td><input type="checkbox" name="checkbox2" value="Baby"></td>
      <td><input type="checkbox" name="checkbox3" value="Cat"></td>
      <td><input type="checkbox" name="checkbox4" value="Dog"></td>
      <td><input type="submit" name="btnDelete" value="Delete"></td>

Hope this would help.

This article has been dead for over six months. Start a new discussion instead.