<?php session_start(); include '../class/config.php'; include '../class/class_departments.php'; $dept = new Departments(); if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = mysql_escape_string($_POST['name']); $description = mysql_escape_string($_POST['description']); $dept->name = $name; $dept->description = $description; $dept->departmentAdd(); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>E-Blast</title> <!-- Bootstrap Core CSS --> <link href="<?php echo $url;