瀏覽代碼

showing wrong date format to user

so they learn from their mistakes
development
mauirixxx 8 年之前
父節點
當前提交
efc6035e79
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      gw-create.php

+ 1
- 1
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<BR />';
echo 'Date is invalid ' . $bdate . '<BR />';
echo 'Date format is YYYY-MM-DD / 2005-04-28<BR />';
echo 'Please click <A HREF="gw-create.php">HERE</A> to try again';
echo '<BR /><BR />Return to <A HREF="gw-index.php">home</A>.</CENTER></BODY></HTML>';


Loading…
取消
儲存