PHP - Superglobals and Web Context
Identify the error in this PHP code snippet handling a POST form:
<?php
if ($_POST['email']) {
echo 'Email: ' . $_POST['email'];
} else {
echo 'No email provided';
}
?>