///////////////////////////////////// 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 '
Please fill in all required fields: ' . implode(', ', $missing_fields) . '
'; } else { echo '
'; echo '

Thank you for your feedback!

'; 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 '
'; } }