first commit
This commit is contained in:
22
fetch_gebdat.php
Executable file
22
fetch_gebdat.php
Executable file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
if(!isset($_SESSION)) { session_start(); }
|
||||
require_once("func_age.php");
|
||||
# echo (int) ifAge ("29.01.2002 > 18");
|
||||
# Ausgabe 0, nicht volljährig; Ausgabe 1, volljährig
|
||||
|
||||
|
||||
#if(isset($_POST['get_option'])){
|
||||
|
||||
|
||||
$gebdat = $_POST['get_option'];
|
||||
if(ifAge ("$gebdat > 18") == 1){
|
||||
echo "||1";
|
||||
}else{
|
||||
echo "Bitte bringen Sie zum Testtermin die schriftliche Einwilligung Ihrer gesetzlicher Vertreter mit, dass diese mit Ihrer Testteilnahme einverstanden sind.||0";;
|
||||
}
|
||||
# Ausgabe 0, nicht volljährig; Ausgabe 1, volljährig
|
||||
|
||||
exit;
|
||||
#}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user