<?php require 'include/config.php'; require 'include/class.mailing.php'; $n = new Mailing($db); if (isset($_POST['submit'])) { $n->Edit($_POST); Misc::Redirect('mailing_list.php'); } if (isset($_POST['submitdelete'])) { $n->Delete($_POST['id']); Misc::Redirect('mailing_list.php'); } include 'include/top.php'; $s = $n->getMailing($_GET['id']); ?> <form method="post"> <input type="hidden" id="hidden" name="id" value="<?php echo $s['id']; ?> " /> <p> <label><span>Title</span></label> <input type="text" name="title" id="title" placeholder="Enter mailing list title" value="<?php echo $s['title']; ?> " /> </p> <p> <label><span>List ID</span></label>