logo

Crowdly

Дано код: $email = $_POST['email']; $age = $_POST['age']; $message = $_POS...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Дано код:

$email = $_POST['email'];

$age = $_POST['age'];

$message = $_POST['message'];

// зберігаємо в файл

$data = "$email,$age,$message\n";

file_put_contents("users.csv", $data, FILE_APPEND);

Питання:

А) Як перевірити, що в змінній $email дійсно знаходиться email?

Б) Який тип має бути у $age і як його правильно опрацювати?

В) Які додаткові перевірки та захисти треба додати для безпеки?

More questions like this

Want instant access to all verified answers on moodle.elct.lnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!