$oComment = new Comment(); $oComment->comment = $_POST["replyCommentBox"]; $oComment->userID = $oCustomer->userID; $oComment->originalID = $_POST["commentID"]; $oComment->saveReply(); header("Location:recipePage.php?message=commentAdded&RecipeID=" . $iRecipeID); exit; // terminates request } $oReplyForm->makeHiddenField("commentID", 0); $oReplyForm->makeCommentBoxTextArea("replyCommentBox"); $oReplyForm->makeSubmit("reply", "Reply", "displayBlock blueButton2 bgBlue marginBottom10 paddingTop10 paddingBottom10 floatRight"); // recipe nav echo View::renderRecipeNav($aAllTypes); //recipe page echo View::renderRecipePage($oRecipe); ?> <div class="clearBoth sixteen columns"> <!-- add comment --> <h3>Comments</h3> <div class="commentBox bgCC selfClear marginBottom20"> <?php echo $oCommentForm->HTML; if (isset($_GET["message"]) == true) { if ($_GET["message"] == "commentAdded") { echo '<div class="commentAdded formSuccess">Your comment has now been added!</div>'; } if ($_GET["message"] == "signIn") { echo '<div class="signIn formError">* Please log-in before posting a comment.</div>'; } }