From efc6035e794f11e691a54d4219bea6285ef93e09 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Thu, 25 May 2017 16:08:15 -1000 Subject: [PATCH] showing wrong date format to user so they learn from their mistakes --- gw-create.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gw-create.php b/gw-create.php index 129434c..697b5ea 100644 --- a/gw-create.php +++ b/gw-create.php @@ -17,7 +17,7 @@ if ($createnew === "1"){ $profid = mysqli_real_escape_string($con, $_POST['professionid']); list ($y, $m, $d) = explode('-', $bdate); if (!checkdate($y, $m, $d)) { - echo 'Date is invalid
'; + echo 'Date is invalid ' . $bdate . '
'; echo 'Date format is YYYY-MM-DD / 2005-04-28
'; echo 'Please click HERE to try again'; echo '

Return to home.';