if ($_SERVER['REQUEST_METHOD'] == "POST" AND isEmail($_POST['email']) AND $_GET['action'] != "bedankt"){
$naam = htmlspecialchars($_POST['naam']);
$email = htmlspecialchars($_POST['email']);
$message = htmlspecialchars($_POST['content']);
mail("joyce@fotografeest.nl", "bericht via website", $message, "FROM: " . $naam . " <" . $email . ">");
header("location: index.php?page=contact&action=bedankt");
} ?>
} else { ?>