can some one help me and tell me where i have gone wrong on this please
i am trying to get it to work on lava script
Code:
<?php $age = 16; /*Required Age*/$date = getdate(); $year = $date['year']; /*Assuming $_POST['YearOfBirth'] is the year of birth specified by the user*/if ($year – $_POST['YearOfBirth'] >= $age){ /* Redirect to your homepage */header("Location: http://yourdomain.com/index.php"); /*Change http://yourdomain.com/index.php to your home page*//* }else{die("you can not access this part"); } ?>
Comment