<!--<button type="submit" class="btn btn-primary">Submit</button>--> </form> <?php } session_start(); if (isset($_POST['form_submit'])) { $topic = strip_tags(trim($_POST['project-topic'])); $link = strip_tags(trim($_POST['project-link'])); $id = $_SESSION['userId']; if (!isset($topic) || $topic === "") { echo "<p style='color:red'>* Please enter a topic</p>"; } elseif (!isset($link) || $link === "") { echo "<p style='color:red'>* Please enter a link</p>"; } else { $data = new DataLayer(); $data->submitProposal($id, $topic, $link); } } ?> </div> <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <div class="row placeholders"> <div class="col-xs-7 col-sm-9 placeholder"> <div class="panel panel-default"> <div class="panel-body"> List of Submitted/Approved projects<br/> <?php $student = $data->getStudent($_SESSION['userId']); echo "Your Status: " . $student[5];