Posted By

danhanly on 01/20/11


Tagged

form mysql database php


Versions (?)

Remove Form


 / Published in: PHP
 

This is for a "floating" box where there are multiple forms on the page.

  1. /*--------REMOVE NEWS FORM--------*/
  2. if($_POST['removeForm_submit']){
  3. $remove_title = $_POST['pos_remove_select'];
  4. mysql_query("DELETE FROM pos WHERE title='$remove_title'") or die(mysql_error());
  5. mysql_query("OPTIMIZE TABLE pos");
  6. echo "<script>alert(\"Successful Remove. Page is Refreshing...\");setTimeout(\"parent.location.reload(true);\", 1000)</script>";
  7. }

Report this snippet  

You need to login to post a comment.