From 0cf996661162d925970f80e1548e48376e572e59 Mon Sep 17 00:00:00 2001 From: SovereigntyIsNotFreedom Date: Wed, 11 Jun 2025 08:57:58 +0100 Subject: [PATCH] submit message status --- www/submit.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/www/submit.php b/www/submit.php index dd2668e..6eb35a5 100644 --- a/www/submit.php +++ b/www/submit.php @@ -1,7 +1,7 @@ '],'', $_POST['link']); @@ -14,13 +14,13 @@ if (isset($_POST['submit'])){ $captcha = htmlspecialchars($_POST['captcha']); // Captcha Auth check if ($captcha != htmlspecialchars($_SESSION['secure'])){ - $submission_message = "

Captcha Failed

"; + $submission_message = "Error: Captcha Failed"; } else { if (empty($link) or empty($name) or empty($description)){ - $submission_message = "

All of the fields must not be empty

"; + $submission_message = "Error: All of the fields must not be empty"; } else { if (strlen($link) > 512 or strlen($name) > 64 or strlen($description) > 256 or strlen($sensitive) > 1 or strlen($category) > 64){ - $submission_message = "

Don't exceed the limit

"; + $submission_message = "Error: Don't exceed the limit"; } else { // Open the file once before the loop @@ -41,7 +41,7 @@ if (isset($_POST['submit'])){ } if ($submission_message === null) { // Only set success message if no error occurred - $submission_message = "

Link Successfully Submitted

"; + $submission_message = "Link Successfully Submitted"; } } } @@ -73,7 +73,7 @@ if (isset($_POST['submit'])){
- +

Character Limits

Link should be 354

@@ -96,7 +96,7 @@ if (isset($_POST['submit'])){
- +