diff --git a/contact/includes/contact.inc.php b/contact/includes/contact.inc.php index ef797c9..18e44bc 100644 --- a/contact/includes/contact.inc.php +++ b/contact/includes/contact.inc.php @@ -76,7 +76,7 @@ function input_filter($data) { } //check if the message is longer than 20 characters. - elseif(strlen($msg) >= 20){ + elseif(strlen($msg) <= 20){ $_SESSION['ERRORS']['mailstatus'] = 'Message should be longer than 20 characters'; header("Location: ../"); @@ -84,7 +84,7 @@ function input_filter($data) { } //check if the message is shorter than 500 characters. - elseif(strlen($msg) <= 500){ + elseif(strlen($msg) >= 500){ $_SESSION['ERRORS']['mailstatus'] = 'Message should be shorter than 500 characters'; header("Location: ../"); diff --git a/contact/index.php b/contact/index.php index 3806133..12f315a 100644 --- a/contact/index.php +++ b/contact/index.php @@ -30,6 +30,13 @@ ?> + + +