$nameErr = $emailErr = $genderErr = $websiteErr = "";
$name = $email = $gender = $comment = $website = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) { $name = test_input($_POST["name"]);
if (empty($_POST["email"])) { $email = test_input($_POST["email"]);
if (empty($_POST["website"])) { $website = test_input($_POST["website"]);
if (empty($_POST["comment"])) { $comment = test_input($_POST["comment"]);
if (empty($_POST["gender"])) { $gender = test_input($_POST["gender"]);
function test_input($data) {