Birthday calculator
| Version | : | 1.1 |
| License | : | GPL |
| Status | : | stable |
Documentation
Features:
This scripts calculates the current age of the webmaster, so don't have to change it every year. At the birthday it asks the user if he/she want's to send a birthday's e-mail. :-) (can switched off)
Usage:
Read first "Free PHP- & Javascripts -> Using the scripts". Call the function at the position of the document, where you need it. The script will controlled by call of the function getAge and the following 5 parameters:
<script language="JavaScript"> getAge(Day of birth,Month of birth,Year of birth,refence year, remind); </script>
Day of birth, Month of birth and Year of birth (all 4 digits !) sould be self-explained.
reference year: here should entered the current year (at installation, also all 4 digits). With this value the script checks, if the local clock of user works right (if is the year right). If is the year of the user' clock lesser than the value, an error message will displayed.
Remind: can be only 0 or 1. 1 = User sould asked, if he/she want to send an birthday e-mail.
Example:
<script language="Javascript"> getAge (30,8,1977,2002,1); </script>
Open the file and search for the line with the content email="e-mail address". Enter there your e-mail address.