";
+ $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 = "