<?php
if (isset($_POST['Confirm'])) {
echo "This is where the mail code should be";
?>
Thank you, your message has been sent! <!-- This content is shown after form submission -->
<?php } else { ?>
This is where the email form should be
<?php }; ?>