File: D:/HostingSpaces/SBogers10/ledub.komma.pro/wwwroot/english.php
<?php
include("all_kms_con.php");
if(isset($_POST['verzenden'])){
$verzenden = true;
}
if(isset($_GET['via'])){
$via = $_GET['via'];
if($via == "facebook"){
$bodyWidth = true;
}
}
if(isset($_POST['vereniging'])){
$vereniging = $_POST['vereniging'];
$vereniging = trim($vereniging);
$lengte_vereniging = strlen($vereniging);
if($lengte_vereniging > 1 && $lengte_vereniging < 255 && $vereniging != "Name of the club"){
$valid_vereniging = true;
}else{
$valid_vereniging = false;
}
}else{
$valid_vereniging = false;
}
if(isset($_POST['teamnaam'])){
$teamnaam = $_POST['teamnaam'];
$teamnaam = trim($teamnaam);
$lengte_teamnaam = strlen($teamnaam);
$te_lang_teamnaam = false;
if($lengte_teamnaam < 16 && $teamnaam != "Team name"){
$test_url = friendlyURL($teamnaam);
$q_cases = sprintf("SELECT kms_inschrijvingen.url FROM kms_inschrijvingen WHERE kms_inschrijvingen.url='%s'", $test_url);
$r_cases = mysql_query($q_cases);
$rec_cases = mysql_fetch_array($r_cases);
$uitkomst = $rec_cases['url'];
if($test_url == $uitkomst){
$valid_teamnaam = false;
$bestaat_al = true;
}else{
$bestaat_al = false;
$valid_teamnaam = true;
}
}else{
$valid_teamnaam = false;
if($lengte_teamnaam > 15){
$teamnaam_te_lang = true;
}
}
}else{
$valid_teamnaam = false;
}
if(isset($_POST['niveau'])){
$niveau = $_POST['niveau'];
if(!empty($niveau)){
$valid_niveau = true;
}else{
$valid_niveau = false;
}
}else{
$valid_niveau = false;
}
if(isset($_POST['geslacht'])){
$geslacht = $_POST['geslacht'];
if(!empty($geslacht)){
$valid_geslacht = true;
}else{
$valid_geslacht = false;
}
}else{
$valid_geslacht = false;
}
if(isset($_POST['voornaam'])){
$voornaam = $_POST['voornaam'];
$voornaam = trim($voornaam);
$voornaam = ucfirst($voornaam);
$lengte_voornaam = strlen($voornaam);
if(($lengte_voornaam > 1) && ($lengte_voornaam < 45) && $voornaam != "First name"){
$valid_voornaam = true;
}else{
$valid_voornaam = false;
}
}else{
$valid_voornaam = false;
}
if(isset($_POST['tussenvoegsel'])){
$tussenvoegsel = $_POST['tussenvoegsel'];
$tussenvoegsel = trim($tussenvoegsel);
$lengte_tussenvoegsel = strlen($tussenvoegsel);
if((($lengte_tussenvoegsel > 1) && ($lengte_tussenvoegsel < 45)) || $lengte_tussenvoegsel == 0){
if($tussenvoegsel == "Preposition"){ $tussenvoegsel = ""; }
$valid_tussenvoegsel = true;
}else{
$valid_tussenvoegsel = false;
}
}else{
$valid_tussenvoegsel = false;
}
if(isset($_POST['achternaam'])){
$achternaam = $_POST['achternaam'];
$achternaam = trim($achternaam);
$achternaam = ucfirst($achternaam);
$lengte_achternaam = strlen($achternaam);
if(($lengte_achternaam > 1) && ($lengte_achternaam < 45) && $achternaam != "Surname"){
$valid_achternaam = true;
}else{
$valid_achternaam = false;
}
}else{
$valid_achternaam = false;
}
if(isset($_POST['telefoonnummer'])){
$telefoonnummer = $_POST['telefoonnummer'];
$telefoonnummer = trim($telefoonnummer);
$telefoonnummer2 = str_replace("-","",$telefoonnummer);
$telefoonnummer2 = str_replace(" ","",$telefoonnummer2);
$telefoonnummer2 = str_replace("+","00",$telefoonnummer2);
if(ereg("^[0-9]*$",$telefoonnummer2)){
$lengte_telnr = strlen($telefoonnummer2);
if(($lengte_telnr > 9) && ($lengte_telnr < 15)){
$valid_telefoonnummer = true;
}else{
$valid_telefoonnummer = false;
}
}else{
$valid_telefoonnummer = false;
}
}else{
$valid_telefoonnummer = false;
}
if(isset($_POST['emailadres']) && !preg_match('/[\w-\.]+@([\w-]+\.)+[\w-]{2,4}/', $_POST['emailadres'])){
$valid_emailadres = false;
$emailadres = $_POST['emailadres'];
$emailadres = trim($emailadres);
}else{
$emailadres = $_POST['emailadres'];
$emailadres = trim($emailadres);
$lengte_emailadres = strlen($emailadres);
$emailadres = strtolower($emailadres);
if($lengte_emailadres < 250){
$valid_emailadres = true;
}else{
$valid_emailadres = false;
}
}
if(isset($_POST['adres'])){
$adres = $_POST['adres'];
$adres = trim($adres);
$adres = ucfirst($adres);
$lengte_adres = strlen($adres);
if(($lengte_adres > 1) && ($lengte_adres < 220) && $adres != "Address"){
$valid_adres = true;
}else{
$valid_adres = false;
}
}else{
$valid_adres = false;
}
if(isset($_POST['postcode'])){
$postcode = $_POST['postcode'];
$postcode = trim($postcode);
$lengte_postcode = strlen($postcode);
if($lengte_postcode > 2 && $lengte_postcode < 10 && $postcode != "Zipcode"){
$valid_postcode = true;
}else{
$valid_postcode = false;
}
}else{
$valid_postcode = false;
}
if(isset($_POST['woonplaats'])){
$woonplaats = $_POST['woonplaats'];
$woonplaats = trim($woonplaats);
$woonplaats = ucfirst($woonplaats);
$lengte_woonplaats = strlen($woonplaats);
if($lengte_woonplaats > 0 && $lengte_woonplaats < 250 && $woonplaats != "City"){
$valid_woonplaats = true;
}else{
$valid_woonplaats = false;
}
}else{
$valid_woonplaats = false;
}
if(isset($_POST['land'])){
$land = $_POST['land'];
if(!empty($land)){
$valid_land = true;
}else{
$valid_land = false;
}
}else{
$valid_land = false;
}
if(isset($_POST['kamperen'])){
$kamperen = $_POST['kamperen'];
if(!empty($kamperen)){
$valid_kamperen = true;
}else{
$valid_kamperen = false;
}
}else{
$valid_kamperen = false;
}
if(isset($_POST['opmerkingen'])){
$opmerkingen = $_POST['opmerkingen'];
}
if($verzenden && $valid_teamnaam && $valid_vereniging && $valid_niveau && $valid_voornaam && $valid_tussenvoegsel && $valid_achternaam && $valid_geslacht &&
$valid_telefoonnummer && $valid_emailadres && $valid_adres && $valid_postcode && $valid_woonplaats && $valid_land && $valid_kamperen){
$datum = date("Y-m-d");
$tijd = date("H:i:s");
$taal = "Engels";
$betaald = "no";
$url = friendlyURL($teamnaam);
$datum = date_dutch($datum);
$teamnaamOnderwerp = $teamnaam;
if(empty($tussenvoegsel)){
$naam = $voornaam." ".$achternaam;
}else{
$naam = $voornaam." ".$tussenvoegsel." ".$achternaam;
}
switch ($niveau) {
case "HN1": $niveauTekst = "Man 1th League (3 against 3)"; break;
case "HN2": $niveauTekst = "Man 2nd League (3 against 3)"; break;
case "HN3": $niveauTekst = "Man 3th League (3 against 3)"; break;
case "HT": $niveauTekst = "Man Top Class"; break;
case "H1": $niveauTekst = "Man 1th Class"; break;
case "H2": $niveauTekst = "Man 2nd Class"; break;
case "H3": $niveauTekst = "Man 3th Class"; break;
case "HR": $niveauTekst = "Man Recreational"; break;
case "DN1": $niveauTekst = "Ladies 1th League (3 against 3)"; break;
case "DN2": $niveauTekst = "Ladies 2nd League (3 against 3)"; break;
case "DN3": $niveauTekst = "Ladies 3th League (3 against 3)"; break;
case "DT": $niveauTekst = "Ladies Top Class"; break;
case "D1": $niveauTekst = "Ladies 1th Class"; break;
case "D2": $niveauTekst = "Ladies 2nd Class"; break;
case "D3": $niveauTekst = "Ladies 3th Class"; break;
case "DR": $niveauTekst = "Ladies Recreational"; break;
case "MR23":$niveauTekst = "Mixed 2nd / 3th Class"; break;
case "MR": $niveauTekst = "Mixed Recreational"; break;
}
$vereniging = utf8_decode($vereniging);
$vereniging = htmlentities($vereniging);
$vereniging = checkData($vereniging);
$vereniging = ucfirst($vereniging);
$vereniging2 = html_entity_decode($vereniging);
$teamnaam = utf8_decode($teamnaam);
$teamnaam = htmlentities($teamnaam);
$teamnaam = checkData($teamnaam);
$teamnaam = ucfirst($teamnaam);
$teamnaam2 = html_entity_decode($teamnaam);
$niveau = checkData($niveau);
$voornaam = utf8_decode($voornaam);
$voornaam = htmlentities($voornaam);
$voornaam = checkData($voornaam);
$voornaam = ucfirst($voornaam);
$voornaam2 = html_entity_decode($voornaam);
$tussenvoegsel = utf8_decode($tussenvoegsel);
$tussenvoegsel = htmlentities($tussenvoegsel);
$tussenvoegsel = checkData($tussenvoegsel);
$tussenvoegsel2 = html_entity_decode($tussenvoegsel);
$achternaam = utf8_decode($achternaam);
$achternaam = htmlentities($achternaam);
$achternaam = checkData($achternaam);
$achternaam2 = html_entity_decode($achternaam);
$achternaam = ucfirst($achternaam);
$geslacht = checkData($geslacht);
$emailadres = checkData($emailadres);
$telefoonnummer = checkData($telefoonnummer2);
$adres = utf8_decode($adres);
$adres = htmlentities($adres);
$adres = checkData($adres);
$adres2 = html_entity_decode($adres);
$postcode = strtoupper($postcode);
$postcode = checkData($postcode);
$woonplaats = utf8_decode($woonplaats);
$woonplaats = htmlentities($woonplaats);
$woonplaats = checkData($woonplaats);
$woonplaats2 = html_entity_decode($woonplaats);
$land = checkData($land);
$kamperen = checkData($kamperen);
$opmerkingen = utf8_decode($opmerkingen);
$opmerkingen = htmlentities($opmerkingen);
$opmerkingen = checkData($opmerkingen);
$opmerkingen2 = html_entity_decode($opmerkingen);
if($kamperen == "yes"){
$kamperenTekst = "yes";
}else{
$kamperenTekst = "no";
}
if(empty($tussenvoegsel)){
$naam2 = $voornaam2." ".$achternaam2;
}else{
$naam2 = $voornaam2." ".$tussenvoegsel2." ".$achternaam2;
}
if($geslacht == "man"){
$aanhef = "sir";
$aanhefKlein = "Dhr.";
}else{
$aanhef = "madam";
$aanhefKlein = "Mevr.";
}
if(!empty($tussenvoegsel)){
$achternaam_volledig = ucfirst($tussenvoegsel)." ".$achternaam;
}else{
$achternaam_volledig = $achternaam;
}
$achternaam_volledig = html_entity_decode($achternaam_volledig);
require_once 'css-js/phpmailer/class.phpmailer.php';
$bericht = "
<body style=\"margin: 10px; background-color:#fff;\" >
<style>
a{
color:#00A6D6;
text-decoration:underline;
}
</style>
<div style=\"color:#231f20; font-family:Verdana,Geneva,sans-serif; font-size:11px; line-height:18px; padding-bottom:23px; width: 800px;\">
Dear $aanhef $achternaam_volledig,<br><br>
Thank you for entering the VC Ledub Tournament!<br>
Closing of the registration is the 12e of May 2013.<br><br>
Your registration is only valid after receiving the registration fee of € 70,- and € 20,- for the Campsite, <br>
at our bank account of VC Ledub, number: 17.95.20.172 BIC code: RABONL2U. IBAN nr: NL87RABO00179520172<br><br>
Don't forget to mention your Team name and contactperson on the transfer. This must correspond to your entry form.<br>
As requested the matches will be played against the clock.<br><br>
<strong>Data team:</strong><br><br>
<strong>Name of the club:</strong> $vereniging2<br>
<strong>Team name:</strong> $teamnaam2<br>
<strong>We register in the following league/class:</strong> $niveauTekst<br><br>
<strong>Your personal data:</strong><br><br>
<strong>Contact person:</strong> $naam2<br>
<strong>Cell phone from contactperson during the tournament:</strong> $telefoonnummer<br>
<strong>E-mail:</strong> $emailadres<br><br>
<strong>Address:</strong> $adres2<br>
<strong>Zipcode:</strong> $postcode<br>
<strong>City:</strong> $woonplaats2<br>
<strong>Country:</strong> $land<br><br>
<strong>We want to camp at the Campsite:</strong> $kamperenTekst<br>
<strong>Message:</strong> <br>$opmerkingen2
<br><br><br>
With kind regards,<br>
Ledûb Volleybal<br><br>
www.ledubvolleybal.nl
</div>
</body>";
$bericht_klant = "
<body style=\"margin: 10px; background-color:#fff;\">
<style>
a{
color:#00A6D6;
text-decoration:underline;
}
</style>
<div style=\"color:#231f20; font-family:Verdana,Geneva,sans-serif; font-size:11px; line-height:18px; padding-bottom:23px; width: 800px;\">
<strong>Beste Marco,</strong><br><br>
Bij deze de gegevens van een persoon die zich ingeschreven heeft voor het Ledûbtoernooi.<br>
Ingevuld op $datum om $tijd<br><br>
<strong>Spreektaal:</strong> $taal<br><br>
<strong>Teamgegevens:</strong><br><br>
<strong>Vereniging:</strong> $vereniging2<br>
<strong>Teamnaam:</strong> $teamnaam2<br>
<strong>Niveau:</strong> $niveauTekst<br>
<strong>Niveau code:</strong> $niveau<br><br>
<strong>Persoonsgegevens:</strong><br><br>
<strong>Contactpersoon:</strong> $aanhefKlein $naam2<br>
<strong>GSM nummer tijdens het toernooi:</strong> $telefoonnummer<br>
<strong>E-mailadres:</strong> $emailadres<br><br>
<strong>Adres:</strong> $adres2<br>
<strong>Postcode:</strong> $postcode<br>
<strong>Woonplaats:</strong> $woonplaats2<br>
<strong>Land:</strong> $land<br><br>
<strong>Keuze om te kamperen:</strong> $kamperenTekst<br>
<strong>Eventuele opmerkingen:</strong> <br>$opmerkingen2
<br><br><br>
Met vriendelijke groet,<br>
Komma Management System
</div>
</body>";
$send_message = false;
$datum = date("Y-m-d");
$tijd = date("H:i:s");
$q_aanmelding = sprintf("INSERT INTO kms_inschrijvingen (vereniging, teamnaam, niveau, voornaam, tussenvoegsel, achternaam, geslacht, telefoonnummer, emailadres, adres, postcode, woonplaats, land, kamperen, opmerkingen, taal, datum, tijd, betaald, url) VALUES ('%s', '%s', '%s', '%s', '%s','%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')",
$vereniging,
$teamnaam,
$niveau,
$voornaam,
$tussenvoegsel,
$achternaam,
$geslacht,
$telefoonnummer,
$emailadres,
$adres,
$postcode,
$woonplaats,
$land,
$kamperen,
$opmerkingen,
$taal,
$datum,
$tijd,
$betaald,
$url);
$r_aanmelding = mysql_query($q_aanmelding);
$from = "toernooi2013@vcledub.nl";
$from_naam = "Ledûb Volleybal";
$onderwerp = "Thank you for entering the Ledûb Tournament";
if($r_aanmelding){
$queryFout = false;
$mail = new PHPMailer(true); //defaults to using php "mail()"; the true param means it will throw exceptions on errors, which we need to catch
try {
$mail->AddReplyTo($from , $from_naam);
$mail->AddAddress($emailadres, $naam);
$mail->SetFrom($from, $from_naam);
$mail->AddReplyTo($from, $from_naam);
$mail->Subject = $onderwerp;
$mail->MsgHTML($bericht);
$mail->Send();
$send_message = true;
} catch (phpmailerException $e) {
$send_message = false;
echo $e->errorMessage(); //Pretty error messages from PHPMailer
} catch (Exception $e) {
$send_message = false;
echo $e->getMessage(); //Boring error messages from anything else!
}
//mail klant
$mail_klant = new PHPMailer(true); //defaults to using php "mail()"; the true param means it will throw exceptions on errors, which we need to catch
try {
$mail_klant->AddReplyTo($from , $from_naam);
$mail_klant->AddAddress($from, $from_naam);
$mail_klant->SetFrom($from, $from_naam);
$mail_klant->AddReplyTo($from , $from_naam);
$mail_klant->Subject = 'Inschrijving '.$teamnaamOnderwerp ;
$mail_klant->MsgHTML($bericht_klant);
$mail_klant->Send();
$mail_klant_send = true;
} catch (phpmailerException $e) {
$mail_klant_send = false;
echo $e->errorMessage(); //Pretty error messages from PHPMailer
} catch (Exception $e) {
$mail_klant_send = false;
echo $e->getMessage(); //Boring error messages from anything else!
}
}else{
$queryFout = true;
}
$pagina = "bevestiging";
}else{
$pagina = "inschrijven";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Author" content="Komma, (c) Komma Mediadesign, 2013. All Rights Reserved." />
<meta name="Subject" content="LedubToernooi Budel Cranendonck" />
<meta name="Description" content="Inschrijving Ledûb Toernooi Budel Cranendonck" />
<meta name="Language" content="Nederlands" />
<meta name="Expires" content="14" />
<meta name="Robots" content="All" />
<title>Registration Ledûbtoernooi 2013 | Ledûb Volleybal Budel Cranendonck</title>
<link href="css-js/screen.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body <?php if($bodyWidth){ echo("style=\"width:480px;\""); } ?> >
<div id="centerAlign">
<div id="mainframe">
<div class="logo"><img src="img/logo.jpg" width="250" height="111" /></div>
<div class="stapContentForm">
<?php if($pagina == "bevestiging"){ ?>
<h1>Thank you for entering the Ledûb Tournament!</h1>
<div class="clear_both"></div>
<?php
if ($queryFout == false){ ?>
<h2>Thank you for entering the Ledûb Tournament with <?php echo($teamnaam2); ?></h2><div class="clear_both"></div>
<?php if($send_message && $mail_klant_send){ ?>
<p>You will recieve an e-mail on <strong><?php echo($emailadres); ?></strong>.
<br>Your registration wil be taking care of. The information on this page will be send to by e-mail.<br><br>
Your registration is only valid after receiving the registration fee of € 70,- and € 20,- for the Campsite,
at our bank account of VC Ledûb, number: 17.95.20.172 <br />BIC code: RABONL2U IBAN nr: NL87RABO00179520172
<br><br>Don't forget to mention your Team name and contactperson on the transfer. <br />This must correspond to your entry form.<br /><br />
Closing of the registration is the 12e of May 2013.</p>
<?php }else{ ?>
<p>The sending of an e-mail to your adress has failed. <br>Possible you give up the wrong adress: <strong><?php echo($emailadres); ?></strong><br /><br />
Please contact the administrator on <a href="mailto:toernooi2013@vcledub.nl">toernooi2013@vcledub.nl</a></p>
<?php } ?>
<?php }else{ ?>
<h2>Your entry has failed</h2><div class="clear_both"></div>
Your entry has failed. Please try again some other time<br>
<br /><br />Please contact the administrator on <a href="mailto:toernooi2013@vcledub.nl">toernooi2013@vcledub.nl</a>
<?php } ?>
<?php }else{ ?>
<h1>Entry Form for the Ledûb Tournament <br />24, 25 and 26 May 2013</h1>
<h2>Please fill in this form completely. Only one team per registration!</h2>
<div class="clear_both"></div>
<?php if($verzenden){ ?><h3 class="error">Some data are entered incorrectly. Nothing has been sent.</h3><div class="clear_both"></div><?php } ?>
<p>The costs of registration are € 70,-.<br />Incomplete forms will be considered as not sent!</p>
<div class="clear_both"></div>
<form action="<?php $_SERVER['PHP_SELF']; ?>" method="post">
<h3>Data team</h3>
<div class="clear_both"></div>
<label>Name of the club</label><input id="vereniging" name="vereniging" <?php if($verzenden && !$valid_vereniging){ echo("class=\"error\""); }?> type="text" value="<?php if(!empty($vereniging)){ echo(htmlspecialchars(stripslashes($vereniging))); }else{ echo("Name of the club"); } ?>" />
<label>Team name (max 15 characters)</label><input id="teamnaam" name="teamnaam" <?php if($verzenden && !$valid_teamnaam){ echo("class=\"error\""); }?> type="text" value="<?php if(!empty($teamnaam)){ echo(htmlspecialchars(stripslashes($teamnaam))); }else{ echo("Team name"); } ?>" />
<?php if($verzenden && $bestaat_al){ echo("<p class=\"error2\">This team name already exists</p>"); }?>
<?php if($verzenden && $teamnaam_te_lang){ echo("<p class=\"error2\">This team name is too long</p>"); }?>
<label>We register in the following league/class:</label>
<select name="niveau">
<option></option>
<optgroup label="Heren">
<option <?php if($niveau == "HN1"){ echo("selected=\"selected\""); } ?> value="HN1">Man 1th League (3 against 3)</option>
<option <?php if($niveau == "HN2"){ echo("selected=\"selected\""); } ?> value="HN2">Man 2nd League (3 against 3)</option>
<option <?php if($niveau == "HN3"){ echo("selected=\"selected\""); } ?> value="HN3">Man 3th League (3 against 3)</option>
<option <?php if($niveau == "HT"){ echo("selected=\"selected\""); } ?> value="HT">Man Top Class</option>
<option <?php if($niveau == "H1"){ echo("selected=\"selected\""); } ?> value="H1">Man 1th Class</option>
<option <?php if($niveau == "H2"){ echo("selected=\"selected\""); } ?> value="H2">Man 2nd Class</option>
<option <?php if($niveau == "H3"){ echo("selected=\"selected\""); } ?> value="H3">Man 3th Class</option>
<option <?php if($niveau == "HR"){ echo("selected=\"selected\""); } ?> value="HR">Man Recreational</option>
</optgroup>
<optgroup label="Dames">
<option <?php if($niveau == "DN1"){ echo("selected=\"selected\""); } ?> value="DN1">Ladies 1th League (3 against 3)</option>
<option <?php if($niveau == "DN2"){ echo("selected=\"selected\""); } ?> value="DN2">Ladies 2nd League (3 against 3)</option>
<option <?php if($niveau == "DN3"){ echo("selected=\"selected\""); } ?> value="DN3">Ladies 3th League (3 against 3)</option>
<option <?php if($niveau == "DT"){ echo("selected=\"selected\""); } ?> value="DT">Ladies Top Class</option>
<option <?php if($niveau == "D1"){ echo("selected=\"selected\""); } ?> value="D1">Ladies 1th Class</option>
<option <?php if($niveau == "D2"){ echo("selected=\"selected\""); } ?> value="D2">Ladies 2nd Class</option>
<option <?php if($niveau == "D3"){ echo("selected=\"selected\""); } ?> value="D3">Ladies 3th Class</option>
<option <?php if($niveau == "DR"){ echo("selected=\"selected\""); } ?> value="DR">Dames Recreational</option>
</optgroup>
<optgroup label="Mixed">
<option <?php if($niveau == "MR23"){ echo("selected=\"selected\""); } ?> value="MR23">Mixed 2nd / 3th Class</option>
<option <?php if($niveau == "MR"){ echo("selected=\"selected\""); } ?> value="MR">Mixed Recreational</option>
</optgroup>
</select>
<?php if($verzenden && !$valid_niveau){ echo("<p class=\"error\">Make your choice</p>"); }?>
<div class="formSeparator"></div>
<h3>Your personal data</h3>
<div class="clear_both"></div>
<label>Title</label><span class="radioLabel <?php if($verzenden && !$valid_geslacht){ echo("error"); }?>">Mr.</span><input name="geslacht" type="radio" value="man" <?php if($geslacht == "man"){ echo("checked=\"checked\""); } ?> /><span class="radioLabel <?php if($verzenden && !$valid_geslacht){ echo("error"); }?>">Ms.</span><input name="geslacht" type="radio" value="vrouw" <?php if($geslacht == "vrouw"){ echo("checked=\"checked\""); } ?> />
<label>First name</label><input id="voornaam" name="voornaam" <?php if($verzenden && !$valid_voornaam){ echo("class=\"error\""); }?> type="text" value="<?php if(!empty($voornaam)){ echo(htmlspecialchars(stripslashes($voornaam))); }else{ echo("First name"); } ?>" />
<label>Preposition</label><input id="tussenvoegsel" name="tussenvoegsel" <?php if($verzenden && !$valid_tussenvoegsel){ echo("class=\"error\""); }?> type="text" value="<?php if(!empty($tussenvoegsel)){ echo(htmlspecialchars(stripslashes($tussenvoegsel))); }else{ echo("Preposition"); } ?>" />
<label>Surname</label><input id="achternaam" name="achternaam" <?php if($verzenden && !$valid_achternaam){ echo("class=\"error\""); }?> type="text" value="<?php if(!empty($achternaam)){ echo(htmlspecialchars(stripslashes($achternaam))); }else{ echo("Surname"); } ?>" />
<div class="formSeparator"></div>
<label>Cell phone from contactperson</label><input id="telefoonnummer" name="telefoonnummer" <?php if($verzenden && !$valid_telefoonnummer){ echo("class=\"error\""); }?> type="text" value="<?php if(!empty($telefoonnummer)){ echo($telefoonnummer); }else{ echo("Cell phone"); } ?>" />
<label>E-mail</label><input id="emailadres" name="emailadres" <?php if($verzenden && !$valid_emailadres){ echo("class=\"error\""); }?> type="text" value="<?php if(!empty($emailadres)){ echo($emailadres); }else{ echo("E-mail"); } ?>" />
<div class="formSeparator"></div>
<label>Address</label><input id="adres" name="adres" <?php if($verzenden && !$valid_adres){ echo("class=\"error\""); }?> type="text" value="<?php if(!empty($adres)){ echo(htmlspecialchars(stripslashes($adres))); }else{ echo("Address"); } ?>" />
<label>Zipcode</label><input id="postcode" class="<?php if($verzenden && !$valid_postcode){ echo("error"); }?>" name="postcode" type="text" value="<?php if(!empty($postcode)){ echo(stripslashes($postcode)); }else{ echo("Zipcode"); } ?>" />
<label>City</label><input id="woonplaats" name="woonplaats" <?php if($verzenden && !$valid_woonplaats){ echo("class=\"error\""); }?> type="text" value="<?php if(!empty($woonplaats)){ echo(htmlspecialchars(stripslashes($woonplaats))); }else{ echo("City"); } ?>" />
<label>Country:</label>
<select name="land">
<option></option>
<option <?php if($land == "Belgium"){ echo("selected=\"selected\""); } ?> value="Belgium">Belgium</option>
<option <?php if($land == "Bulgaria"){ echo("selected=\"selected\""); } ?> value="Bulgaria">Bulgaria</option>
<option <?php if($land == "Denmark"){ echo("selected=\"selected\""); } ?> value="Denmark">Denmark</option>
<option <?php if($land == "Germany"){ echo("selected=\"selected\""); } ?> value="Germany">Germany</option>
<option <?php if($land == "Estonia"){ echo("selected=\"selected\""); } ?> value="Estonia">Estonia</option>
<option <?php if($land == "Finland"){ echo("selected=\"selected\""); } ?> value="Finland">Finland</option>
<option <?php if($land == "France"){ echo("selected=\"selected\""); } ?> value="France">France</option>
<option <?php if($land == "Greece"){ echo("selected=\"selected\""); } ?> value="Greece">Greece</option>
<option <?php if($land == "Hungary"){ echo("selected=\"selected\""); } ?> value="Hungary">Hungary</option>
<option <?php if($land == "Ireland"){ echo("selected=\"selected\""); } ?> value="Ireland">Ireland</option>
<option <?php if($land == "Italy"){ echo("selected=\"selected\""); } ?> value="Italy">Italy</option>
<option <?php if($land == "Latvia"){ echo("selected=\"selected\""); } ?> value="Latvia">Latvia</option>
<option <?php if($land == "Lithuania"){ echo("selected=\"selected\""); } ?> value="Lithuania">Lithuania</option>
<option <?php if($land == "Luxembourg"){ echo("selected=\"selected\""); } ?> value="Luxembourg">Luxembourg</option>
<option <?php if($land == "Malta"){ echo("selected=\"selected\""); } ?> value="Malta">Malta</option>
<option <?php if($land == "Netherlands"){ echo("selected=\"selected\""); } ?> value="Netherlands">Netherlands</option>
<option <?php if($land == "Austria"){ echo("selected=\"selected\""); } ?> value="Austria">Austria</option>
<option <?php if($land == "Poland"){ echo("selected=\"selected\""); } ?> value="Poland">Poland</option>
<option <?php if($land == "Portugal"){ echo("selected=\"selected\""); } ?> value="Portugal">Portugal</option>
<option <?php if($land == "Romania"){ echo("selected=\"selected\""); } ?> value="Romania">Romania</option>
<option <?php if($land == "Slovenia"){ echo("selected=\"selected\""); } ?> value="Slovenia">Slovenia</option>
<option <?php if($land == "Slovakia"){ echo("selected=\"selected\""); } ?> value="Slovakia">Slovakia</option>
<option <?php if($land == "Spain"){ echo("selected=\"selected\""); } ?> value="Spain">Spain</option>
<option <?php if($land == "Czech Republic"){ echo("selected=\"selected\""); } ?> value="Czech Republic">Czech Republic</option>
<option <?php if($land == "United Kingdom"){ echo("selected=\"selected\""); } ?> value="United Kingdom">United Kingdom</option>
<option <?php if($land == "Sweden"){ echo("selected=\"selected\""); } ?> value="Sweden">Sweden</option>
</select>
<?php if($verzenden && !$valid_land){ echo("<p class=\"error\">Make your choice</p>"); }?>
<div class="formSeparator"></div>
<label>We want to camp at the <br />Campsite <strong>à € 20,-</strong></label><span class="radioLabel <?php if($verzenden && !$valid_kamperen){ echo("error"); }?>">No</span><input name="kamperen" id="kamperenNee" type="radio" value="no" <?php if($kamperen == "no"){ echo("checked=\"checked\""); } ?> /><span class="radioLabel <?php if($verzenden && !$valid_kamperen){ echo("error"); }?>">Yes</span><input name="kamperen" id="kamperenJa" type="radio" value="yes" <?php if($kamperen == "yes"){ echo("checked=\"checked\""); } ?> />
<div class="formSeparator"></div><div class="clear_both"></div>
<label>Message (not necessary)</label>
<textarea name="opmerkingen" rows="3"><?php if(!empty($opmerkingen)){ echo(stripslashes($opmerkingen)); } ?></textarea>
<div class="formSeparator"></div>
<input type="submit" name="verzenden" value="Send entry" />
</form>
<?php } ?>
</div>
</div>
</div>
<script type="text/javascript" src="css-js/jquery-1.5.1.min.js"> </script>
<script type="text/javascript" src="css-js/ledub_en.js"> </script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-28839965-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>