I can't seem to see the problem with my success and not success form below. The form is sent successfully but keep outputting oops try again
<?php
if ($success) {
$message = "Message sent succesfully! Thank you.";
} else {
$message = "Oops! Try again!";
}
echo '<div id="message">'.$message.'<div id="close-button"></div></div>';
?>