<?php require WPATH . "modules/process/form_processor.php"; $sub = new Form_Process(); $item_type = $_SESSION['item_type']; if (isset($_SESSION['user'])) { $username = $_SESSION['user']; $details = $sub->fetchDetails($username); } if (!isset($_SESSION['item_type'])) { App::redirectTo("?report"); } else { if (!empty($_POST)) { $success = $sub->execute(); if (is_bool($success) && $success == true) { App::redirectTo("?thanks"); } } } ?> <section id="banner"> </section> <section id="footer"> <div class="inner"> <h2 class="major">Report Lost & Found</h2> <p>Ensure you indicate clearly where you have dropped the lost & found document. E.g. Central Police Station reception</p> <form method="POST"> <input type="hidden" name="action" value="reporting"/> <div class="field"> <label for="item_type"> Picked Document Type</label>