From 5d3b8b81ee6c5a3860fb3d72f2fcda342b8b02e7 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Wed, 8 Aug 2018 12:21:50 -1000 Subject: [PATCH] trying to fix an undefined index error still broken --- includes/verifications.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/includes/verifications.php b/includes/verifications.php index b071058..921f94e 100644 --- a/includes/verifications.php +++ b/includes/verifications.php @@ -49,10 +49,11 @@ if (!empty($_POST['useremail'])) { #################### # verifying passwords match each other - -if (($_POST['userpass1']) != ($_POST['userpass2'])) { - echo '
The passwords don\'t match!
Please try again!'; - include_once ('footer.php'); - exit(); +if (!empty($_POST['userpass1'] && $_POST['userpass2'])) { + if (($_POST['userpass1']) != ($_POST['userpass2'])) { + echo '
The passwords don\'t match!
Please try again!'; + include_once ('footer.php'); + exit(); + } } ?> \ No newline at end of file