Dear PHP Help,
I’m looking for help on creating an array and a formula that would calculate the gua / fung shui number of someone online.
KUA NUMBER FOR A FEMALE:
-
Add the last two numbers of your year of birth and bring it to a single digit.
-
Add your single digit to number 5.
-
This is your Kua Number!
KUA NUMBER FOR A MALE:
-
Add the last two numbers of your year of birth and bring it to a single digit.
-
Deduct your single digit from number 10.
-
This is your Kua Number!
There are a number of these online and it seems most rest on the premise or creating around 100 inputs into HTML and I was wondering if there was an easier way using PHP to derive the equation and set up the code.
I was hoping to have a very simple form text input where someone who have to only enter the last two digits of their birth year and then a radio button where the user would select whether they are male or female, and then a calculate button.
Any help is much appreciated. I am also happy to pay for assistance. I can be contacted directly at andrew(at)paxforfriends.com.
Best regards,
Andrew