title: Button type=submit with php isset instead of input typebutton
body: <p>I have been searching this stuff but could not find anywhere.
  when i search about button name and value, everywhere its mentioned about input type=button</p>
  
  <p>But i am looking for button type=submit instead of input type=button
  i want to allow users to remove their comments. So, the delete button is just showing like a link</p>
  
  <p>The Html is</p>
  
  <pre><code>&lt;button class="likeslink" type="submit" name="delcom" value="&lt;?php echo $comid ?&gt;"&gt;&lt;small&gt;Delete&lt;/small&gt;&lt;/button&gt;
  </code></pre>
  
  <p>I am not getting how can i check if this button is clicked or not not using php as i tried </p>
  
  <pre><code>&lt;?php
  if(isset('delcom'))
  {
  $sql = "DELETE FROM comments WHERE id = :id";
  $stmt = $DB-&gt;prepare($sql);
  $stmt-&gt;bindValue(":id", $comid);
  $stmt-&gt;execute();
  }
  ?&gt;
  </code></pre>
  
  <p>But its not working.</p>
  
  <p>Meanwhile, i want a popup alert message that confirms Delete Query includings Delete or Cancel buttons on it</p>
  
  <p>I don't want that simple javascript alert on the top of the page. I want some popup window in the middle of the screen with my own Color scheme</p>
  
  <p>Please help</p>