- trim: documentation ( source)
<?php
if($_SERVER['REQUEST_METHOD']=="POST") {
if( trim($_POST['voorletters'])=="" || trim($_POST['achternaam'])=="" || trim($_POST['email'])=="") {
echo "De voorletters, achternaam of e-mailadres is niet ingevuld. Controleer je invoer opnieuw.";
} else {
// alles is goed ingevuld, de boel kan gemaild worden
}
}