<?php include 'database.php'; $database = new Database(); // echo "string"; // class addBrick{ if (empty($_POST['hidden'])) { $commentContent = $_POST['comment']; $database->addcomment($commentContent, $_POST['id']); header("Location: proposeSolution.php?id=" . $_POST['id']); } else { $output = "We do not accept bots"; return $output; } // }