"; echo "Your Message has been submited.
"; echo "Go here to view your message"; } elseif($_POST['name'] = "" && $_POST['msg'] != "")) { echo "Please fill the name field"; } elseif($_POST['name'] != "" && $_POST['msg'] = "") { echo "Please fill the message field"; } else{ echo "Please fill both of the fields and then submit"; } ?>