PHP Taskbook Level 5.5

Задание 1

A form with two inputs is given. Numbers are entered into the inputs. After the form is submitted, fill the array with integers from the first number entered to the last.

Задание 2

A form with an input is given. A string is entered into the input. After sending the form, output the last character of the entered string into the paragraph.

Задание 3

When you enter the page, output a list of ul filled with numbers from 1 to 10.

Задание 4

A form with an input is given. The input is a date in the format 2025-12-31. After sending the form, output the year in the first paragraph, the month in the second paragraph, and the day in the third.

Задание 5

Use a checkbox to ask the user if they are 18 years old. If so, display the following text:

html<div class="adult">
  <h2>for adult</h2>
  <p>
    text text text
  </p>
</div>

If not, then output the following text:

html<div class="child">
  <h2>for child</h2>
  <p>
    text text text
  </p>
</div>