23 lines
517 B
PHP
Executable File
23 lines
517 B
PHP
Executable File
<?php
|
|
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;
|
|
#}
|
|
?>
|
|
|