0

Can someone help with a php code for birthday validation so that student below 20 year's wouldn't be able to register

PHP Code for Form validation

3rd Sep 2020, 5:27 PM
Adeyemo Rasheed
Adeyemo Rasheed - avatar
2 Answers
+ 1
<input type = 'number' name ='d'> <?php $d=$_POST['d']; if($d<2000) echo 'above 20'; ?>
3rd Sep 2020, 6:32 PM
Ali Abd Alftah Fadul Mohammed
Ali Abd Alftah Fadul Mohammed - avatar
23rd Sep 2020, 6:28 PM
Pettem Srikanth
Pettem Srikanth - avatar