Friday, August 23, 2019
Writing a program to see if a child is 18 years of age Coursework
Writing a program to see if a child is 18 years of age - Coursework Example The implementation is through the PHP inbuilt methods of POST[] and GET[]. The age format that has been input is verified using an age PHP function: The age difference of the user is calculated by comparing the age that has been input by the user and the current day and time that the process is taking place. It is possible by virtue of a PHP inbuilt function: If else function determine if the user will proceed. If the user is above 18 years, he will be allowed to proceed by displaying ââ¬Å"you are Welcome, Click on the link bellow to proceedâ⬠and upon clicking the link will be taking to a page that he can shop. Else if the age difference is bellow 18 years a - verifying the age of the user through the registration process that will only allow registration of users with age of 18 years and above. It reduces the redundancy of verifying the age of the user every time they are making a
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.