From e031215516573b14545e81665b991176a467bce5 Mon Sep 17 00:00:00 2001 From: Sudipto Mallick Date: Sat, 3 Feb 2024 16:29:27 +0000 Subject: Implement PHP assignment #3, improve the rest --- mysql-php/code/a1.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'mysql-php/code/a1.php') diff --git a/mysql-php/code/a1.php b/mysql-php/code/a1.php index 4569ca8..614f044 100644 --- a/mysql-php/code/a1.php +++ b/mysql-php/code/a1.php @@ -1,7 +1,7 @@ $desc) { - if (!isset($_POST[$name]) || empty($_POST[$name])) + if (empty($_POST[$name])) display_failure('The ' . $desc . ' field can not be empty'); $vars[$name] = $_POST[$name]; } @@ -186,7 +186,7 @@ function show_record($record) { Path ' . htmlspecialchars($path) . ' was not found.

'; -- cgit 1.4.1-2-gfad0