From 4fbcc88ea2dceac3141190787b57ad5f9fbdf302 Mon Sep 17 00:00:00 2001 From: Arash <97286379+Ghalbeyou@users.noreply.github.com> Date: Tue, 8 Mar 2022 09:38:01 +0330 Subject: [PATCH] =?UTF-8?q?=D8=A8=D9=87=D8=A8=D9=88=D8=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit بهتر کردن فایل --- index.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) 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 +