///////////////////////////////////// Task 1 Form Handling ////////////////////////// if ($_SERVER['REQUEST_METHOD'] === 'GET' && !empty($_GET)) { $required_fields = ['shop', 'name', 'email', 'rating']; $missing_fields = []; foreach ($required_fields as $field) { if (empty($_GET[$field])) { $missing_fields[] = $field; } } if (!empty($missing_fields)) { echo '
Shop: ' . htmlspecialchars($_GET['shop']) . '
'; echo 'Name: ' . htmlspecialchars($_GET['name']) . '
'; echo 'Email: ' . htmlspecialchars($_GET['email']) . '
'; echo 'Rating: ' . htmlspecialchars($_GET['rating']) . '/5
'; if (!empty($_GET['comments'])) { echo 'Comments: ' . nl2br(htmlspecialchars($_GET['comments'])) . '
'; } echo '