PHP Taskbook Level 5.8

Задание 1

Given a form with a select. Make it so that after the form is submitted, the select saves the user's choice.

Задание 2

Ask the user for their birthday in the format 2025-12-31. After submitting the form, display how many days are left until their next birthday.

Задание 3

Given an array. Make it so that when the page is refreshed, a random element of the array is displayed in the paragraph.

Задание 4

A form with an input is given. Numbers are entered into the input, separated by commas. After sending the form, find the sum of the numbers entered and output it to the paragraph.

Задание 5

A form with an input is given. The input contains numbers separated by commas. After sending the form, check if the number 13 is among the entered numbers.

Задание 6

A form with an input is given. A six-digit number is entered into the input. After sending the form, check that the number is a lucky ticket, i.e. the sum of the first three digits is equal to the sum of the second three digits.