<?php session_start(); include '../class/config.php'; include '../class/class_departments.php'; $dept = new Departments(); $id = $_GET['id']; $dept->departmentData($id); if ($_SERVER["REQUEST_METHOD"] == "POST") { $name = mysql_escape_string($_POST['name']); $description = mysql_escape_string($_POST['description']); $id = mysql_escape_string($_POST['dept_id']); $dept->name = $name; $dept->description = $description; $dept->departmentEdit($id); } ?> <!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>