PHP-Script: how old is my baby?

  • Κατάσταση: Closed
  • Βραβείο: €25
  • Ληφθείσες Συμμετοχές: 5
  • Νικητής: medycms

Σύνοψη Διαγωνισμού

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.

Προτεινόμενες Δεξιότητες

Δημόσιος Πίνακας Διευκρινίσεων

  • vishaljunior
    vishaljunior
    • Πριν από 6 χρόνια

    Can I still upload an entry?

    • Πριν από 6 χρόνια

Πώς να ξεκινήσετε με τους διαγωνισμούς

  • Δημοσιεύστε τον διαγωνισμό σας

    Αναρτήστε τον διαγωνισμό σας Γρήγορα και εύκολα

  • Λάβε ένα σωρό συμμετοχές

    Λάβετε Πολλές Συμμετοχές Από όλο τον κόσμο

  • Βραβεύστε την καλύτερη καταχώρηση

    Βραβεύστε την καλύτερη καταχώρηση Κατεβάστε τα αρχεία - Εύκολα!

Αναρτήστε ένα Διαγωνισμό Τώρα ή Ελάτε Μαζί Μας Σήμερα!