Ejemplo n.º 1
0
include "process.php";
if (isset($_POST['submit'])) {
    if (isset($_POST['sec_title']) && isset($_POST['sec_url']) && isset($_POST['sec_order']) && isset($_POST['sec_despription'])) {
        //echo"Register.. 111111111!";
        $sec_title = $_POST['sec_title'];
        $sec_url = $_POST['sec_url'];
        $sec_order = $_POST['sec_order'];
        $sec_despription = $_POST['sec_despription'];
        // $categorie->setCat_title($cat_title);
        //       $categorie->setCat_despription($cat_despription);
        //       $CategorieM->addNewCategorie($categorie);
        $Section->setSec_url($sec_url);
        $Section->setsSec_title($sec_title);
        $Section->setSec_order($sec_order);
        $Section->setSec_despription($sec_despription);
        $SectionM->addNewSection($Section);
    } else {
        echo "Register.. 222222222!";
    }
}
?>
<head>
<link href="menu.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="view.css" media="all"/>
<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;