"> Enter your name:
Enter your age:
Do you have a drivers licence? Yes No
Which maths subjects do you do at school (you can tick more than one)?
Maths A:
Maths B:
Maths C:
Enter a password:
\n"); if ($age < 12) { print("You are a young one!
\n"); } else { print("You are an oldie!
\n"); } print("Licence status: $licence
\n"); print("You do the following maths subjects:
\n"); if (isset($_POST["mathsa"])) { print("Maths A
\n"); } if (isset($_POST["mathsb"])) { print("Maths B
\n"); } if (isset($_POST["mathsc"])) { print("Maths C
\n"); } print("Your super secret password is: $pword
\n"); } ?>