title: How to make to submit button, delete and update at the same form,php
body: <p>I am making a form that when user check one row with check button he can delete or update it...But only the delete button work.I dont know how to make two submit buttons in the same form. I want the delete button when pressed to go to delete.php and update button to go two update.php...Below is my form...</p>
  
  <pre><code>&lt;form name="form1" method="post" action="delete.php"&gt;
  &lt;table &gt;
  
    &lt;th&gt;
  
  &lt;th &gt;&lt;strong&gt;Emri &lt;/strong&gt;&lt;/th&gt;
  &lt;th &gt;&lt;strong&gt;Pershkrimi &lt;/strong&gt;&lt;/th&gt;
  &lt;th&gt;&lt;strong&gt;Ora&lt;/strong&gt;&lt;/th&gt;
  &lt;/th&gt;
  
  &lt;?php
  
  while ($row=mysql_fetch_array($result)) {
  ?&gt;
  
  &lt;tr&gt;
  &lt;td &gt;&lt;input name="checkbox[]" type="checkbox" value="&lt;?php echo $row['Id_Akt']; ?&gt;"&gt;&lt;/td&gt;
  &lt;td style="font-size:0.9em"&gt;&lt;?php echo $row['Emri']; ?&gt;&lt;/td&gt;
  &lt;td &gt;&lt;?php echo $row['Pershkrimi']; ?&gt;&lt;/td&gt;
  &lt;td&gt;&lt;?php echo $row['Ora']; ?&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;?php
  }
  ?&gt;
  
  
  &lt;/table&gt;
  &lt;input class="button" name="delete" type="submit" value="Fshij" style="margin-left:4%; margin-top:50px; width:15%"&gt;
  
  &lt;br&gt;
  
  
  &lt;input class="button" name="update" type="button" value="Update" style="margin-left:4%; margin-top:20px; width:15%" &gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>Please help me.Thanks in advance</p>