PHP-Script: how old is my baby?

  • Tila: Closed
  • Palkinto: €25
  • Vastaanotetut työt: 5
  • Voittaja: medycms

Kilpailun tehtävänanto

Hi,

I need a script (PHP), that calculates how old a person is, show result and sets a cookie.

Input:
- Date of birth
- Name of person

Output:
X years, Y months and Z days old
YY weeks and ZZ days old
ZZZ days old
In VVV days the person will become YX years old
Nameofperson was born on a (monday, tuesday,...)


Set a cookie for every date/name. So when the user comes back to the page it shall show him automaticly his recent age-calculations.
Show a cross to delete saved names/dates

I need everything in PHP.


That's how I need it:
https://anon.to/sXlRTn


I need to see a preview, so I can award your entry!

//Edit:
Of course I need a save script! For example: at the date-input are only numbers allowed, no letters.
If someone enters a date in the future, there should be an error-output!
If someone enters a date which is older than 100 years, also error.
The name-input has to be save for injections.

Suositellut taidot

Julkinen selvennystaulu

  • vishaljunior
    vishaljunior
    • 6 vuotta sitten

    Can I still upload an entry?

    • 6 vuotta sitten

Kuinka päästä alkuun kilpailuiden kanssa

  • Ilmoita kilpailusi

    Ilmoita kilpailusi Nopeaa ja helppoa

  • Saat valtavasti töitä

    Vastaanota tonnikaupalla osallistumisia Ympäri maailmaa

  • Myönnä palkinto parhaalle työlle

    Myönnä palkinto parhaalle työlle Lataa tiedostot - Helppoa!

Ilmoita kilpailu nyt tai liity tänään!