HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers44/ledubtoernooi.nl/wwwroot/inschrijven/english_oud.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 "HN":	$niveauTekst = "Man League (3 against 3)"; break;
			case "HT1":	$niveauTekst = "Man Top / 1th Class"; break;
			case "H23":	$niveauTekst = "Man 2nd / 3th Class"; break;
			case "HR":	$niveauTekst = "Man Recreational"; break;
			case "DN":	$niveauTekst = "Ladies League (3 against 3)"; break;
			case "DT1":	$niveauTekst = "Ladies Top / 1th Class"; break;
			case "D23":	$niveauTekst = "Ladies 2nd / 3th Class"; break;
			case "DR":	$niveauTekst = "Ladies Recreational"; break;
			case "MR23":$niveauTekst = "Mixed 2nd / 3th Class"; break;
			case "MR":	$niveauTekst = "Mixed Recreational"; break;
		}
		
		$vereniging = addslashes(htmlentities($vereniging));
		$vereniging2 = $vereniging;
		
		$teamnaam = addslashes(htmlentities($teamnaam));
		$teamnaam2 = $teamnaam;
		
		$niveau = addslashes(htmlentities($niveau));
		
		$voornaam = addslashes(htmlentities($voornaam));
		$voornaam2 = $voornaam;
	
		$tussenvoegsel = addslashes(htmlentities($tussenvoegsel));
		$tussenvoegsel2 = $tussenvoegsel;
		
		$achternaam = addslashes(htmlentities($achternaam));
		$achternaam2 = $achternaam;
		
		$geslacht = addslashes(htmlentities($geslacht));
		$emailadres = addslashes(htmlentities($emailadres));
		$telefoonnummer = addslashes(htmlentities($telefoonnummer2));
		
		$adres = addslashes(htmlentities($adres));
		$adres2 = $adres;
		
		$postcode = strtoupper($postcode);
		$postcode = addslashes(htmlentities($postcode));
		
		$woonplaats = addslashes(htmlentities($woonplaats));
		$woonplaats2 = $woonplaats;
		
		$land = addslashes(htmlentities($land));
		$kamperen = addslashes(htmlentities($kamperen));
		
		$opmerkingen = addslashes(htmlentities($opmerkingen));
		$opmerkingen2 = $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;
		}

		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 Ledûb Volleybal Festival!<br>
Closing of the registration is the 9e of June 2019.<br><br>
Your registration is only valid after receiving the registration fee of &euro; 75,- and &euro; 25,- for the Campsite, <br>
at our bank account of Ledûb Volleybal Festival, IBAN: NL62 RABO 0367 3402 67 BIC code: RABONL2U.<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&ucirc;b Volleybal Festival<br><br>
www.ledubvolleybalfestival.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 Kanjer,</strong><br><br>

Bij deze de gegevens van een persoon die zich ingeschreven heeft voor het Led&ucirc;b Volleybal Festival.<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 = "info@ledubtoernooi.nl";
			$from_naam = "Ledûb Volleybal Festival";
			$onderwerp = "Thank you for entering the Ledûb Volleybal Festival";
			
			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&ucirc;b Toernooi Budel Cranendonck" /> 
<meta name="Language" content="Nederlands" /> 
<meta name="Expires" content="14" /> 
<meta name="Robots" content="All" />
<title>Registration Led&ucirc;b Volleybal Festival</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&ucirc;b Volleyball Festival!</h1>
        <div class="clear_both"></div>
        <?php
			if ($queryFout == false){ ?>
            <h2>Thank you for entering the Led&ucirc;b Volleyball Festival 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 &euro; 75,- and &euro; 25,- for the Campsite,
					at our bank account of Ledûb Volleybal Festival, IBAN: NL62 RABO 0367 3402 67<br />BIC code: RABONL2U 
					<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 9e of June 2019.</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:info@ledubvolleybalfestival.nl">info@ledubvolleybalfestival.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:info@ledubvolleybalfestival.nl">info@ledubvolleybalfestival.nl</a>
		<?php } ?>
		
	<?php }else{ ?>	
        <h1>Entry Form for the Led&ucirc;b Volleyball Festival <br />14, 15 and 16 June 2019</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 &euro; 75,-.<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 == "HT1"){ echo("selected=\"selected\""); } ?> value="HT1">Man Top / 1th Class</option>
                    <option <?php if($niveau == "H23"){ echo("selected=\"selected\""); } ?> value="H23">Man 2nd / 3th Class</option>
                    <option <?php if($niveau == "HR"){ echo("selected=\"selected\""); } ?> value="HR">Man Recreational</option>
                </optgroup>
                <optgroup label="Dames">
                    <option <?php if($niveau == "DT1"){ echo("selected=\"selected\""); } ?> value="DT1">Ladies Top / 1th Class</option>
                    <option <?php if($niveau == "D23"){ echo("selected=\"selected\""); } ?> value="D23">Ladies 2nd / 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>&agrave; &euro; 25,-</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 class="clear_both"></div>
        <div id="footer">
            <div>Led&ucirc;b Volleybal Festival | <a href="mailto:info@ledubvolleybalfestival.nl">info@ledubvolleybalfestival.nl</a> | BTW NL9272318B01 | KvK Brabant 40236908</div>
        </div>

    </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>