ContactContactIf you have any questions or you need help with your hotel reservation, please contact us: 5; if ($blnPostOkay) $blnPostOkay = $blnPostOkay && !empty($_POST['mail']); if ($blnPostOkay) $blnPostOkay = $blnPostOkay && checkmail($_POST['mail'])==1; if ($blnPostOkay) $blnPostOkay = $blnPostOkay && !empty($_POST['msggs']) && strlen($_POST['msggs']) > 10; if ($blnPostOkay) $blnPostOkay = $blnPostOkay && !empty($_POST['onderwerp']) && strlen($_POST['onderwerp']) > 5; } else { // prefill some variables, to re-use existing code in html if (!isset($_POST['mail'])) $_POST['mail'] = ''; if (!isset($_POST['msggs'])) $_POST['msggs'] = ''; if (!isset($_POST['onderwerp'])) $_POST['onderwerp'] = ''; if (!isset($_POST['naam'])) $_POST['naam'] = ''; } if (!$blnPostOkay) { // if ($_POST['submit'] && (!$_POST['naam'] || !$_POST['mail'] || !checkmail($_POST['mail']) || !$_POST['msggs'] || !$_POST['onderwerp'])) if ($_SERVER['REQUEST_METHOD'] == "POST") { if ($_POST['mail']=='' || $_POST['msggs']='' || $_POST['onderwerp'] == '' || $_POST['naam'] == '') { echo "Je bent je naam, e-mail adres, onderwerp of bericht vergeten in te vullen. Ook kan het zijn "; echo "dat je een verkeerd e-mail adres hebt ingevuld."; } } // form + tabel echo " Your e-mail is send"; echo "Thank you for contacting us. You will receive an answer "; echo "as soon as possible if needed. "; echo "We will take your message seriuosly and will confidential handling of your information. "; echo "Your email address will not be disclosed to third parties. "; } ?> |