• Copyright© 2025 xPralak Designs - Joseph Downey
<div id="page">
<?php
// Set Page Initialization
include('includes/header.php');
echo("<h1 class='page-heading'>Joe's | Birthdate Info Calculator</h1>");
echo("<div class='birthday-info-form'>");
echo("<div class='form-box'>");
echo("<h2>Enter Your Birthdate</h2>
<form method='post'>
<input type='date' name='birthdate' required>
<input type='submit' value='Submit'>
</form>");
echo("</div>");
echo("</div>");
// Set Logic Start
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$birthdate = $_POST['birthdate'];
$birthDateObj = new DateTime($birthdate);
$today = new DateTime();
$year = $birthDateObj->format('Y');
$month = $birthDateObj->format('m');
$day = $birthDateObj->format('d');
// Calculate age
$age = $today->diff($birthDateObj)->y;
// Leap year check
$isLeapYear = (date('L', strtotime($year . "-01-01")) == 1);
// Determine Western Zodiac Sign
$zodiacSign = "";
if (($month == 1 && $day <= 19) || ($month == 12 && $day >= 22)) $zodiacSign = "Capricorn";
elseif (($month == 1 && $day >= 20) || ($month == 2 && $day <= 18)) $zodiacSign = "Aquarius";
elseif (($month == 2 && $day >= 19) || ($month == 3 && $day <= 20)) $zodiacSign = "Pisces";
elseif (($month == 3 && $day >= 21) || ($month == 4 && $day <= 19)) $zodiacSign = "Aries";
elseif (($month == 4 && $day >= 20) || ($month == 5 && $day <= 20)) $zodiacSign = "Taurus";
elseif (($month == 5 && $day >= 21) || ($month == 6 && $day <= 20)) $zodiacSign = "Gemini";
elseif (($month == 6 && $day >= 21) || ($month == 7 && $day <= 22)) $zodiacSign = "Cancer";
elseif (($month == 7 && $day >= 23) || ($month == 8 && $day <= 22)) $zodiacSign = "Leo";
elseif (($month == 8 && $day >= 23) || ($month == 9 && $day <= 22)) $zodiacSign = "Virgo";
elseif (($month == 9 && $day >= 23) || ($month == 10 && $day <= 22)) $zodiacSign = "Libra";
elseif (($month == 10 && $day >= 23) || ($month == 11 && $day <= 21)) $zodiacSign = "Scorpio";
elseif (($month == 11 && $day >= 22) || ($month == 12 && $day <= 21)) $zodiacSign = "Sagittarius";
// Determine Chinese Zodiac Sign
$chineseZodiacs = ["Rat", "Ox", "Tiger", "Rabbit", "Dragon", "Snake", "Horse", "Goat", "Monkey", "Rooster", "Dog", "Pig"];
$chineseZodiac = $chineseZodiacs[$year % 12];
// Determine next birthday
$nextBirthday = new DateTime(date('Y') . "-$month-$day");
if ($nextBirthday < $today) {
$nextBirthday->modify('+1 year');
}
$daysUntilBirthday = $today->diff($nextBirthday)->days;
// Set Day of the week born
$dayOfWeek = $birthDateObj->format('l');
// Set Today's Date Section
$currentDate = $today->format('m/d/Y');
$currentDayOfWeek = $today->format('l');
$currentSeason = null;
$nextHoliday = null;
$previousHoliday = null;
$daysUntilHoliday = null;
$nextHolidayDate = null;
$previousHolidayDate = null;
$currentHolidayDate = null;
$currentMonth = date('m');
$currentDay = date('d');
$currentHoliday = null;
$SPRING = "Spring";
$SUMMER = "Summer";
$FALL = "Fall";
$WINTER = "Winter";
// Determine Current Season
$currentSeason = "";
if (($currentMonth == 12 && $currentDay >= 21) || ($currentMonth == 1) || ($currentMonth == 2) || ($currentMonth == 3 && $currentDay <= 19)) {
$currentSeason = $WINTER;// "Winter";
} elseif (($currentMonth == 3 && $currentDay >= 20) || $currentMonth == 4 || $currentMonth == 5 || ($currentMonth == 6 && $currentDay <= 20)) {
$currentSeason = $SPRING;// "Spring";
} elseif (($currentMonth == 6 && $currentDay >= 21) || $currentMonth == 7 || $currentMonth == 8 || ($currentMonth == 9 && $currentDay <= 22)) {
$currentSeason = $SUMMER;// "Summer";
} elseif (($currentMonth == 9 && $currentDay >= 23) || $currentMonth == 10 || $currentMonth == 11 || ($currentMonth == 12 && $currentDay <= 20)) {
$currentSeason = $FALL;// "Autumn (Fall)";
}
// Determine the Birth Season
$season = "";
if (($month == 12 && $day >= 21) || ($month == 1) || ($month == 2) || ($month == 3 && $day <= 19)) {
$season = "Winter";
} elseif (($month == 3 && $day >= 20) || $month == 4 || $month == 5 || ($month == 6 && $day <= 20)) {
$season = "Spring";
} elseif (($month == 6 && $day >= 21) || $month == 7 || $month == 8 || ($month == 9 && $day <= 22)) {
$season = "Summer";
} elseif (($month == 9 && $day >= 23) || $month == 10 || $month == 11 || ($month == 12 && $day <= 20)) {
$season = $FALL;// "Autumn (Fall)";
}
// Set Fixed-date holidays
$holidays = [
"01-01" => "New Year's Day",
"01-02" => "Berchtold's Day (Switzerland, Liechtenstein)",
"01-03" => "Tamaseseri Festival (Japan)",
"01-04" => "World Braille Day",
"01-05" => "Guru Gobind Singh Jayanti (India)",
"01-06" => "Epiphany",
"01-07" => "Orthodox Christmas Day",
"01-08" => "Battle of New Orleans Anniversary (USA)",
"01-09" => "Martyrs' Day (Panama)",
"01-10" => "Traditional Coming of Age Day (Japan)",
"01-11" => "National Human Trafficking Awareness Day (USA)",
"01-12" => "Zanzibar Revolution Day (Tanzania)",
"01-13" => "Liberation Day (Togo)",
"01-14" => "Orthodox New Year",
"01-15" => "Martin Luther King Jr. Birthday (Observed in the USA on the 3rd Monday)",
"01-16" => "Teachers' Day (Thailand)",
"01-17" => "Ben Franklin Day (USA)",
"01-18" => "Winnie the Pooh Day",
"01-19" => "Timkat (Ethiopian Epiphany)",
"01-20" => "Saint Sebastian's Day",
"01-21" => "Flag Day (Quebec, Canada)",
"01-22" => "National Day (Ukraine)",
"01-23" => "Handwriting Day",
"01-24" => "International Day of Education",
"01-25" => "Burns Night (Scotland)",
"01-26" => "Australia Day",
"01-27" => "International Holocaust Remembrance Day",
"01-28" => "Data Privacy Day",
"01-29" => "Puzzle Day",
"01-30" => "School Day of Non-violence and Peace",
"01-31" => "Street Children's Day",
"02-01" => "Spring Festival (China)",
"02-02" => "Groundhog Day (USA, Canada)",
"02-03" => "Setsubun (Japan)",
"02-04" => "World Cancer Day",
"02-05" => "Constitution Day (Mexico)",
"02-06" => "Waitangi Day (New Zealand)",
"02-07" => "Independence Day (Grenada)",
"02-08" => "Preseren Day (Slovenia)",
"02-09" => "Chocolate Day",
"02-10" => "Vietnamese Heritage Day",
"02-11" => "National Foundation Day (Japan)",
"02-12" => "Red Hand Day (Child Soldiers Awareness)",
"02-13" => "World Radio Day",
"02-14" => "Valentine's Day",
"02-15" => "Serbia National Day",
"02-16" => "Independence Day (Lithuania)",
"02-17" => "Random Acts of Kindness Day",
"02-18" => "Independence Day (Gambia)",
"02-19" => "Flag Day (Turkmenistan)",
"02-20" => "World Day of Social Justice",
"02-21" => "International Mother Language Day",
"02-22" => "Thinking Day (Scouts & Guides)",
"02-23" => "Defender of the Fatherland Day (Russia)",
"02-24" => "Estonian Independence Day",
"02-25" => "Kuwait National Day",
"02-26" => "Levi Strauss Day",
"02-27" => "Dominican Republic Independence Day",
"02-28" => "National Science Day (India)",
"02-29" => "Leap Day (every 4 years)",
"03-01" => "St. David's Day (Wales)",
"03-02" => "Texas Independence Day",
"03-03" => "World Wildlife Day",
"03-04" => "Grammar Day",
"03-05" => "Custom Chief's Day (Vanuatu)",
"03-06" => "Independence Day (Ghana)",
"03-07" => "Teacher's Day (Albania)",
"03-08" => "International Women's Day",
"03-09" => "Baron Bliss Day (Belize)",
"03-10" => "Tibet Uprising Day",
"03-11" => "Johnny Appleseed Day",
"03-12" => "Mauritius Independence Day",
"03-13" => "British Empire Day",
"03-14" => "Pi Day",
"03-15" => "Ides of March",
"03-16" => "Lips Appreciation Day",
"03-17" => "St. Patrick's Day",
"03-18" => "Awkward Moments Day",
"03-19" => "St. Joseph's Day",
"03-20" => "International Day of Happiness",
"03-21" => "World Poetry Day",
"03-22" => "World Water Day",
"03-23" => "Pakistan Day",
"03-24" => "Truth and Justice Memorial Day (Argentina)",
"03-25" => "Greek Independence Day",
"03-26" => "Bangladesh Independence Day",
"03-27" => "World Theatre Day",
"03-28" => "Teacher's Day (Czech Republic, Slovakia)",
"03-29" => "Vietnam Veterans Day (USA)",
"03-30" => "Doctors' Day (USA)",
"03-31" => "Transgender Day of Visibility",
"04-01" => "April Fool's Day",
"04-02" => "World Autism Awareness Day",
"04-03" => "Find a Rainbow Day",
"04-04" => "NATO Day",
"04-05" => "Tomb Sweeping Day (Qingming Festival, China)",
"04-06" => "Tartan Day (Scotland, USA, Canada)",
"04-07" => "World Health Day",
"04-08" => "Buddhist Heritage Day",
"04-09" => "Winston Churchill Day",
"04-10" => "Siblings Day",
"04-11" => "National Pet Day",
"04-12" => "Cosmonautics Day (Russia)",
"04-13" => "Thai Cultural Celebration Day",
"04-14" => "Black Day (South Korea, for singles)",
"04-15" => "Federal Income Tax Awareness Day (USA)",
"04-16" => "Emancipation Day (USA, Washington D.C.)",
"04-17" => "Syrian Independence Day",
"04-18" => "World Heritage Day",
"04-19" => "Dutch-American Friendship Day",
"04-20" => "420 (Cannabis Culture Day)",
"04-21" => "Tiradentes Day (Brazil)",
"04-22" => "Earth Day",
"04-23" => "World Book and Copyright Day",
"04-24" => "Armenian Genocide Remembrance Day",
"04-25" => "ANZAC Day (Australia, New Zealand)",
"04-26" => "World Intellectual Property Day",
"04-27" => "Freedom Day (South Africa)",
"04-28" => "World Day for Safety and Health at Work",
"04-29" => "International Dance Day",
"04-30" => "Walpurgis Night (Europe)",
"05-01" => "Labor Day (International Workers' Day)",
"05-02" => "Flag Day (Poland)",
"05-03" => "World Press Freedom Day",
"05-04" => "Star Wars Day (May the Fourth Be With You)",
"05-05" => "Cinco de Mayo (Mexico, USA)",
"05-06" => "International No Diet Day",
"05-07" => "Radio Day (Russia)",
"05-08" => "Victory in Europe (VE) Day",
"05-09" => "Europe Day",
"05-10" => "Golden Spike Day (Transcontinental Railroad, USA)",
"05-11" => "Eat What You Want Day",
"05-12" => "International Nurses Day",
"05-13" => "Leprechaun Day",
"05-14" => "Independence Day (Paraguay)",
"05-15" => "International Day of Families",
"05-16" => "Teachers' Day (Malaysia)",
"05-17" => "Norwegian Constitution Day",
"05-18" => "International Museum Day",
"05-19" => "Ho Chi Minh's Birthday (Vietnam)",
"05-20" => "Cameroon National Day",
"05-21" => "World Day for Cultural Diversity",
"05-22" => "Biodiversity Day",
"05-23" => "World Turtle Day",
"05-24" => "Canadian Heritage Day",
"05-25" => "Africa Day",
"05-26" => "National Sorry Day (Australia)",
"05-27" => "Children's Day (Nigeria)",
"05-28" => "Azerbaijan Republic Day",
"05-29" => "International Day of UN Peacekeepers",
"05-30" => "Canary Islands Day",
"05-31" => "World No Tobacco Day",
"06-01" => "Global Day of Parents",
"06-02" => "Republic Day (Italy)",
"06-03" => "Martyr's Day (Uganda)",
"06-04" => "Tiananmen Square Anniversary",
"06-05" => "World Environment Day",
"06-06" => "D-Day Anniversary",
"06-07" => "National Chocolate Ice Cream Day",
"06-08" => "World Oceans Day",
"06-09" => "Coral Triangle Day",
"06-10" => "Portugal Day",
"06-11" => "King Kamehameha Day (Hawaii, USA)",
"06-12" => "Independence Day (Philippines, Russia)",
"06-13" => "Sewing Machine Day",
"06-14" => "Flag Day (USA)",
"06-15" => "Magna Carta Day",
"06-16" => "Youth Day (South Africa)",
"06-17" => "Iceland National Day",
"06-18" => "Autistic Pride Day",
"06-19" => "Juneteenth (USA)",
"06-20" => "World Refugee Day",
"06-21" => "International Yoga Day",
"06-22" => "Windrush Day (UK)",
"06-23" => "United Nations Public Service Day",
"06-24" => "Quebec National Day (Canada)",
"06-25" => "Croatia Independence Day",
"06-26" => "International Day Against Drug Abuse",
"06-27" => "Micro-, Small and Medium Enterprises Day",
"06-28" => "Stonewall Riots Anniversary",
"06-29" => "Feast of Saints Peter and Paul",
"06-30" => "Democracy Day (Congo)",
"07-01" => "Canada Day",
"07-02" => "World UFO Day",
"07-03" => "Independence Day (Belarus)",
"07-04" => "Independence Day (USA)",
"07-05" => "Venezuela Independence Day",
"07-06" => "International Kissing Day",
"07-07" => "Tanabata (Japan)",
"07-08" => "Video Game Day",
"07-09" => "Independence Day (Argentina)",
"07-10" => "Nikola Tesla Day",
"07-11" => "World Population Day",
"07-12" => "Malala Day",
"07-13" => "French Fry Day",
"07-14" => "Bastille Day (France)",
"07-15" => "Saint Swithin's Day",
"07-16" => "Apollo 11 Launch Anniversary",
"07-17" => "World Emoji Day",
"07-18" => "Nelson Mandela Day",
"07-19" => "Sandinista Revolution Day (Nicaragua)",
"07-20" => "Colombian Independence Day",
"07-21" => "Belgian National Day",
"07-22" => "Pi Approximation Day",
"07-23" => "Revolution Day (Egypt)",
"07-24" => "Pioneer Day (Utah, USA)",
"07-25" => "Constitution Day (Puerto Rico)",
"07-26" => "Liberia Independence Day",
"07-27" => "Korean War Veterans Armistice Day",
"07-28" => "Peru Independence Day",
"07-29" => "International Tiger Day",
"07-30" => "Friendship Day",
"07-31" => "Harry Potter's Birthday (Fictional, but widely celebrated)",
"08-01" => "Swiss National Day",
"08-02" => "Coloring Book Day",
"08-03" => "Independence Day (Niger)",
"08-04" => "Coast Guard Day (USA)",
"08-05" => "Independence Day (Burkina Faso)",
"08-06" => "Independence Day (Jamaica, Bolivia)",
"08-07" => "Independence Day (Ivory Coast)",
"08-08" => "International Cat Day",
"08-09" => "International Day of the World's Indigenous Peoples",
"08-10" => "Ecuador Independence Day",
"08-11" => "Mountain Day (Japan)",
"08-12" => "International Youth Day",
"08-13" => "Left-Handers Day",
"08-14" => "Pakistan Independence Day",
"08-15" => "India Independence Day",
"08-16" => "Bennington Battle Day (Vermont, USA)",
"08-17" => "Indonesia Independence Day",
"08-18" => "Never Give Up Day",
"08-19" => "World Humanitarian Day",
"08-20" => "Hungary State Foundation Day",
"08-21" => "Senior Citizens Day",
"08-22" => "Be An Angel Day",
"08-23" => "International Day for the Remembrance of the Slave Trade",
"08-24" => "Ukraine Independence Day",
"08-25" => "Uruguay Independence Day",
"08-26" => "Women's Equality Day",
"08-27" => "Moldova Independence Day",
"08-28" => "Rainbow Bridge Remembrance Day",
"08-29" => "International Day Against Nuclear Tests",
"08-30" => "Victory Day (Turkey)",
"08-31" => "Malaysia Independence Day",
"09-01" => "World Letter Writing Day",
"09-02" => "Vietnam National Day",
"09-03" => "San Marino Founding Day",
"09-04" => "Newspaper Carrier Day",
"09-05" => "International Day of Charity",
"09-06" => "Read a Book Day",
"09-07" => "Brazil Independence Day",
"09-08" => "International Literacy Day",
"09-09" => "Teddy Bear Day",
"09-10" => "World Suicide Prevention Day",
"09-11" => "Patriot Day (USA)",
"09-12" => "National Video Game Day",
"09-13" => "Roald Dahl Day",
"09-14" => "Holy Cross Day",
"09-15" => "Hispanic Heritage Month Begins (USA)",
"09-16" => "Mexico Independence Day",
"09-17" => "Constitution Day (USA)",
"09-18" => "Chile Independence Day",
"09-19" => "Talk Like a Pirate Day",
"09-20" => "National Pepperoni Pizza Day",
"09-21" => "International Day of Peace",
"09-22" => "Hobbit Day (Birthday of Frodo and Bilbo Baggins)",
"09-23" => "National Puppy Day",
"09-24" => "Heritage Day (South Africa)",
"09-25" => "Comic Book Day",
"09-26" => "World Contraception Day",
"09-27" => "World Tourism Day",
"09-28" => "Ask a Stupid Question Day",
"09-29" => "World Heart Day",
"09-30" => "International Podcast Day",
"10-01" => "China National Day",
"10-02" => "Gandhi Jayanti (India)",
"10-03" => "German Unity Day",
"10-04" => "World Animal Day",
"10-05" => "World Teachers' Day",
"10-06" => "Mad Hatter Day",
"10-07" => "World Smile Day",
"10-08" => "World Octopus Day",
"10-09" => "World Post Day",
"10-10" => "World Mental Health Day",
"10-11" => "International Day of the Girl Child",
"10-12" => "National Farmers Day (USA)",
"10-13" => "Navy Birthday (USA)",
"10-14" => "World Standards Day",
"10-15" => "Global Handwashing Day",
"10-16" => "World Food Day",
"10-17" => "International Day for the Eradication of Poverty",
"10-18" => "Alaska Day",
"10-19" => "Evaluate Your Life Day",
"10-20" => "World Statistics Day",
"10-21" => "Back to the Future Day",
"10-22" => "International Stuttering Awareness Day",
"10-23" => "Mole Day (Avogadro's Number)",
"10-24" => "United Nations Day",
"10-25" => "World Pasta Day",
"10-26" => "National Pumpkin Day",
"10-27" => "World Day for Audiovisual Heritage",
"10-28" => "Plush Animal Lovers' Day",
"10-29" => "Turkey Republic Day",
"10-30" => "Mischief Night",
"10-31" => "Halloween",
"11-01" => "All Saints' Day",
"11-02" => "All Souls' Day",
"11-03" => "Culture Day (Japan)",
"11-04" => "National Candy Day",
"11-05" => "Guy Fawkes Night (UK)",
"11-06" => "Saxophone Day",
"11-07" => "Hug a Bear Day",
"11-08" => "World Urbanism Day",
"11-09" => "World Freedom Day",
"11-10" => "Marine Corps Birthday (USA)",
"11-11" => "Veterans Day (USA)",
"11-12" => "World Pneumonia Day",
"11-13" => "World Kindness Day",
"11-14" => "Children's Day (India)",
"11-15" => "National Philanthropy Day",
"11-16" => "International Day for Tolerance",
"11-17" => "World Prematurity Day",
"11-18" => "Latvia Independence Day",
"11-19" => "World Toilet Day",
"11-20" => "Universal Children's Day",
"11-21" => "World Television Day",
"11-22" => "Go For a Ride Day",
"11-23" => "Doctor Who Day",
"11-24" => "Evolution Day",
"11-25" => "International Day for the Elimination of Violence Against Women",
"11-26" => "Small Business Saturday",
"11-27" => "Cyber Monday",
"11-28" => "Red Planet Day",
"11-29" => "International Day of Solidarity with the Palestinian People",
"11-30" => "St. Andrew's Day (Scotland)",
"12-01" => "World AIDS Day",
"12-02" => "UAE National Day",
"12-03" => "International Day of Persons with Disabilities",
"12-04" => "National Cookie Day",
"12-05" => "International Volunteer Day",
"12-06" => "St. Nicholas Day",
"12-07" => "Pearl Harbor Remembrance Day",
"12-08" => "Bodhi Day (Buddhism)",
"12-09" => "International Anti-Corruption Day",
"12-10" => "Human Rights Day",
"12-11" => "International Mountain Day",
"12-12" => "Gingerbread House Day",
"12-13" => "National Cocoa Day",
"12-14" => "Monkey Day",
"12-15" => "Bill of Rights Day",
"12-16" => "Boston Tea Party Anniversary",
"12-17" => "Wright Brothers Day",
"12-18" => "Qatar National Day",
"12-19" => "Look for an Evergreen Day",
"12-20" => "International Human Solidarity Day",
"12-21" => "Human Rights Day",
"12-22" => "Forefathers' Day",
"12-23" => "Festivus",
"12-24" => "Christmas Eve",
"12-25" => "Christmas Day",
"12-26" => "Boxing Day",
"12-27" => "Visit the Zoo Day",
"12-28" => "Card Playing Day",
"12-29" => "Tick Tock Day",
"12-30" => "Rizal Day (Philippines)",
"12-31" => "New Year's Eve"
];
// Set Dynamic holidays Function (calculated based on year)
function getNthWeekdayOfMonth($year, $month, $dayOfWeek, $nth)
{
$date = new DateTime("$year-$month-01");
$count = 0;
while ($date->format('N') != $dayOfWeek || ++$count < $nth) {
$date->modify('+1 day');
}
return $date->format('m-d');
}
// Set/Use the dynamic holiday calculation for Mother's Day, Father's Day, and Thanksgiving
$dynamicHolidays = [
getNthWeekdayOfMonth($year, 5, 1, 2) => "Mother's Day", // 2nd Sunday in May
getNthWeekdayOfMonth($year, 6, 7, 3) => "Father's Day", // 3rd Sunday in June
getNthWeekdayOfMonth($year, 11, 4, 4) => "Thanksgiving", // 4th Thursday in November
getNthWeekdayOfMonth($year, 9, 1, 1) => "Labor Day", // 1st Monday in September
getNthWeekdayOfMonth($year, 10, 2, 2) => "Columbus Day", // 2nd Monday in October
getNthWeekdayOfMonth($year, 11, 1, 1) => "Veterans Day", // 1st Monday in November
];
// Merge both holiday arrays
$allHolidays = array_merge($holidays, $dynamicHolidays);
// Check if birthday matches a holiday
$holiday = isset($allHolidays["$month-$day"]) ? $allHolidays["$month-$day"] : "None";
// Merge static and dynamic holidays
$allHolidays = array_merge($holidays, $dynamicHolidays);
// Find next holiday and previous holiday based on current date
foreach ($allHolidays as $holidayDate => $holidayName) {
$holidayDateObj = new DateTime($today->format('Y') . '-' . $holidayDate);
if ($holidayDateObj > $today) {
if (!$nextHoliday || $holidayDateObj < $nextHolidayDate) {
$nextHoliday = $holidayName;
$nextHolidayDate = $holidayDateObj;
$daysUntilHoliday = $today->diff($nextHolidayDate)->days;
}
} elseif ($holidayDateObj < $today) {
if (!$previousHoliday || $holidayDateObj > $previousHolidayDate) {
$previousHoliday = $holidayName;
$previousHolidayDate = $holidayDateObj;
}
elseif ($holidayDateObj = $today) {
if (!$currentHoliday || $holidayDateObj = $currentHolidayDate) {
$currentHoliday = $holidayName;
$currentHolidayDate = $holidayDateObj;
}
}
}
$image1 = '';
switch ($currentSeason) {
case $SPRING:
$image1 = "spring.png";
break;
case $FALL:
$image1 = "fallsquirrel.png";
break;
case $WINTER:
$image1 = "winter.png";
break;
case $SUMMER:
$image1 = "summer.png";
break;
}
$image2 = '';
switch ($season) {
case $SPRING:
$image2 = "spring.png";
break;
case $FALL:
$image2 = "fallsquirrel.png";
break;
case $WINTER:
$image2 = "winter.png";
break;
case $SUMMER:
$image2 = "summer.png";
break;
}
}
// Print Both Date Info Sections
echo("<div class='birthday-info'>");
// Print Today's Date Section Output
echo("<div class='info-box'>");
echo("<div class='info-box-description'>");
echo("<h2>Today's Date</h2>");
echo("<p><strong>Date:</strong> " . $currentDate . "</p>");
echo "<p><strong>Season:</strong> " . $currentSeason . "</p>";
echo("<p><strong>Day of the Week:</strong> " . $currentDayOfWeek . "</p>");
echo("<p><strong>Previous Holiday:</strong> " . ($previousHoliday ?: "No previous holiday") . "</p>");
echo("<p><strong>Next Holiday:</strong> " . ($nextHoliday ?: "No upcoming holiday") . " in $daysUntilHoliday days</p>");
echo("</div>");
echo("<img src=\"../images/$image1\" class='seasonimage' alt='Current Season'>");
echo("</div>");
// Print Birthdate Information results
echo("<div class='info-box'>");
echo("<div class='info-box-description'>");
echo "<h2>Birthdate Information</h2>";
echo "<p><strong>Birthdate:</strong> " . $birthdate . "</p>";
echo "<p><strong>Age:</strong> " . $age . " years old</p>";
echo "<p><strong>Western Zodiac Sign:</strong> " . $zodiacSign . "</p>";
echo "<p><strong>Chinese Zodiac Sign:</strong> " . $chineseZodiac . "</p>";
echo "<p><strong>Day of the Week Born:</strong> " . $dayOfWeek . "</p>";
echo "<p><strong>Season:</strong> " . $season . "</p>";
echo "<p><strong>Days Until Next Birthday:</strong> " . $daysUntilBirthday . " days</p>";
echo "<p><strong>Holiday:</strong> " . ($holiday != "None" ? $holiday : "None") . "</p>";
echo("</div>");
echo("<img src=\"../images/$image2\" class='seasonimage' alt='Current Season'>");
echo("</div>");
echo("</div>");
}
include('includes/footer.php');
?>
</div>