diff --git a/index.php b/index.php index 7706b86..15e5043 100644 --- a/index.php +++ b/index.php @@ -7,16 +7,7 @@ $submit = $_POST["submit"]; -if(isset($submit)){ - if ($_SERVER['REQUEST_METHOD'] === 'POST'){ - if(empty($from) || empty($to) || empty($sub)){ - echo "

Please Complete All Of Them!

"; - }else{ - mail($to,$sub,$text,$cc); - echo ""; - } - } -} + ?> @@ -35,7 +26,19 @@

+ Please Complete All Of Them!"; + }else{ + mail($to,$sub,$text,$cc); + echo "Mail Has Been Sent!"; + } + } +} + ?> - \ No newline at end of file +