Ejemplo n.º 1
0
 * @author asmalindi
 * @copyright 2011
 */
require "PostModel.php";
include "process.php";
$postM = new PostModel();
$post = new Post();
if (isset($_POST['submit'])) {
    //echo "rgggggggggg";
    if (isset($_POST['post_id'])) {
        // echo "rgggggggggg".$_POST['post_id'];
        $post_id = $_POST['post_id'];
        //echo $post_id ;
        //$categorie->setCat_title($cat_title);
        //$CategorieM->addNewCategorie($categorie);
        $postM->removePost($post_id);
    }
}
?>
<head>
<link href="menu.css" rel="stylesheet" type="text/css" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.js"></script>
<script type="text/javascript" src="menu.js"></script>
<style type="text/css">
<!--
    body,
    html {
        margin:0;
        padding:0;
        color:#000;