Bläddra i källkod

it worked!

now to try a real date ....
development
mauirixxx 8 år sedan
förälder
incheckning
556e6de6cd
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. +2
    -1
      gw-create.php

+ 2
- 1
gw-create.php Visa fil

@@ -17,7 +17,8 @@ if ($createnew === "1"){
$profid = mysqli_real_escape_string($con, $_POST['professionid']); $profid = mysqli_real_escape_string($con, $_POST['professionid']);
list ($y, $m, $d) = explode('-', $bdate); list ($y, $m, $d) = explode('-', $bdate);
if (!checkdate($y, $m, $d)) { if (!checkdate($y, $m, $d)) {
echo 'Date format is YYYY-MM-DD / 2005-04-28';
echo 'Date is invalid<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 '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>'; echo '<BR /><BR />Return to <A HREF="gw-index.php">home</A>.</CENTER></BODY></HTML>';
exit(); exit();


Laddar…
Avbryt
Spara