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/SBogers10/komma-mediadesign.nl/wwwroot/ledub/en/inschrijven.php
<?php
if (isset($_POST['verzenden']))
{
	$verzenden = "true";
}
if (isset($_POST['postcode']))
{
     $postcode = $_POST['postcode'];
};
if (isset($_POST['contactpersoon']))
{
	$contactpersoon=$_POST['contactpersoon'];
};
if (isset($_POST['gsm']))
{
	$gsm=$_POST['gsm'];
	$gsm2 = str_replace("-","",$gsm);
	$gsm3 = str_replace(" ","",$gsm2);
	if(ereg("^[0-9]{10}$",$gsm3)){
		$valid_gsm = "true";
	}
};
if (isset($_POST['teamnaam']))
{
	$teamnaam=$_POST['teamnaam'];
	$lengte = strlen($teamnaam);
	if($lengte < 19){
		$team_correct = "true";
	}
};
if (isset($_POST['adres']))
{
	$adres=$_POST['adres'];
};
if (isset($_POST['huisnummer']))
{
	$huisnummer=$_POST['huisnummer'];
};
if (isset($_POST['vereniging']))
{
	$vereniging=$_POST['vereniging'];
};
if (isset($_POST['woonplaats']))
{
	$woonplaats=$_POST['woonplaats'];
};
if (isset($_POST['telefoon']))
{
	$telefoon=$_POST['telefoon'];
	$telefoon2 = str_replace("-","",$telefoon);
	$telefoon3 = str_replace(" ","",$telefoon2);
};
if (isset($_POST['emailadres']))
{
	$emailadres=$_POST['emailadres'];
	$emailadres=strtolower($emailadres);
	if(ereg("^[a-z0-9_.-]*@[a-z0-9_.-]*[.][a-z]*([.][a-z]*)?$",$emailadres)){
		$valid_mail = "true";
	}
};
if (isset($_POST['kamperen']))
{
	$kamperen=$_POST['kamperen'];
};
if (isset($_POST['klasse']))
{
	$klasse=$_POST['klasse'];
};
if (isset($_POST['opmerkingen']))
{
	$opmerkingen=$_POST['opmerkingen'];
};
//-----------------------------------------------

?>
<!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" />
<title>Entry Form for the Ledûb Tournament 2009</title>
<style type="text/css">
<!--
.style1 {
	font-family: Arial, Helvetica, sans-serif;
	color: #000000;
}
-->
</style>
</head>

<body class="style1">
<p class="style1">Entry Form for the 
Ledûb Tournament 2009!</p>
<table width="822" border="0">
<form method="post" action="
 <?php if (!empty($vereniging) && $team_correct == "true" && !empty($teamnaam) && !empty($contactpersoon) && $valid_gsm == "true" && !empty($adres) && !empty($postcode) && !empty($woonplaats) && !empty($telefoon3) && !empty($kamperen) && $valid_mail == "true" && !empty ($klasse)){ 
print("bevestiging.php");
}else{
 echo $_SERVER['PHP_SELF']; }?>">
  <tr>
    <th width="262" scope="col">Please fill in this form completely.</th>
    <th width="308" scope="col">&nbsp;</th>
    <th width="193" scope="col">&nbsp;</th>
  </tr>
  <tr>
    <td scope="col"><span class="tekst">Name of the club:</span></td>
    <td><input name="vereniging" type="text" id="vereniging" value = "<?php print($vereniging) ?>" size="40"/></td>
    <td><?php if ($verzenden == "true" && empty($vereniging)){ 
   					print ("Please fill your Name of the club correctly"); 
					}?></td>
  </tr>
  <tr>
    <td><span class="tekst">Team name:</span> (max 18 characters):</td>
    <td><input name="teamnaam" type="text" id="teamnaam" value = "<?php print($teamnaam) ?>" size="40" maxlength="18"/></td>
    <td><?php if ($verzenden == "true" && ($team_correct != "true" || empty($teamnaam))){ 
   					print ("Please fill your Team name correctly"); 
					}?>
     </td>
  </tr>
  <tr>
    <td><span class="tekst">Contact person:</span></td>
    <td><input name="contactpersoon" type="text" id="contactpersoon" value = "<?php print($contactpersoon) ?>" size="40"/></td>
    <td><?php if ($verzenden == "true" && empty($contactpersoon)){ 
   					print ("Please fill your Contact person correctly"); 
					}?></td>
  </tr>
   <tr>
    <td><span class="tekst">Cell phone from contactperson<br />
during the tournament:</span></td>
    <td><input name="gsm" type="text" id="gsm" value = "<?php print($gsm3) ?>" size="40"/></td>
    <td><?php if ($verzenden == "true" && $valid_gsm != "true"){ 
   					print ("Please fill your Cell phone correctly"); 
					}?></td>
  </tr>
  <tr>
    <td><span class="tekst">Address:</span></td>
    <td><input name="adres" type="text" id="adres" value = "<?php print($adres) ?>" size="40"/></td>
    <td><?php if ($verzenden == "true" && empty($adres)){ 
   					print ("Please fill your Address correctly"); 
					}?></td>
  </tr>
  <tr>
    <td><span class="tekst">Zipcode:</span></td>
    <td><input name="postcode" type="text" id="postcode" value = "<?php print($postcode) ?>" size="40"/></td>
    <td><?php if ($verzenden == "true" && empty($postcode)){ 
   					print ("Please fill your Zipcode correctly"); 
					}?></td>
  </tr>
  <tr>
    <td><span class="tekst">City:</span> / <span class="tekst">Country:</span></td>
    <td><input name="woonplaats" type="text" id="woonplaats" value = "<?php print($woonplaats) ?>" size="40"/></td>
    <td><?php if ($verzenden == "true" && empty($woonplaats)){ 
   					print ("Please fill your City /Country correctly"); 
					}?></td>
  </tr>
  <tr>
    <td><span class="tekst">Telephone nr:</span></td>
    <td><input name="telefoon" type="text" id="telefoon" value = "<?php print($telefoon3) ?>" size="40"/></td>
    <td><?php if ($verzenden == "true" && empty($telefoon3)){ 
   					print ("Please fill your Telephone nr correctly"); 
					}?></td>
  </tr>
  <tr>
    <td><span class="tekst">E-mail:</span></td>
    <td><input name="emailadres" type="text" id="emailadres" value = "<?php print($emailadres) ?>" size="40"/></td>
    <td><?php if ($verzenden == "true" && $valid_mail != "true"){ 
   					print ("Please fill your E-mail correctly"); 
					}?></td>
  </tr>  
  <tr>
    <td><p><span class="tekst">We want to camp at the Campsite<br />
    </span><span class="tekst"><strong>á € 20,-</strong></span><strong><br />
      </strong></p></td>
    <td>Yes
      <input type="radio" name="kamperen" id="ja" value="ja" <?php if ($kamperen == "ja") {print("checked= \"checked\"");} else{ print("");} ?>/>
      No
      <input type="radio" name="kamperen" id="nee" value="nee" <?php if ($kamperen == "nee") {print("checked= \"checked\"");} else {print("");}?> /></td>
    <td><?php if ($verzenden == "true" && empty($kamperen)){ 
   					print ("Please fill your choise correctly"); 
					}?></td>
  </tr>
  <tr>
    <th>&nbsp;</th>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><span class="tekst">Message (not 
necessary):</span></td>
    <td><textarea name="opmerkingen" cols="35" rows="5" id="opmerkingen"><?php print($opmerkingen) ?></textarea></td>
    <td></td>
  </tr>
  <tr>
    <td>We register in the following league/class: </td>
    <td>&nbsp;</td>
    <td><br />      <br /></td>
    <tr><td width='262' class='tekst'>Man 1<sup>th</sup> League</td><td><input type="radio" name="klasse" id="Heren 1ste Divisie" value="Man 1th League" <?php if ($klasse == "Heren 1ste Divisie") {print("checked= \"checked\"");} else{ print("");} ?>/></td><td><span class="tekst">Ladies 1<sup>th</sup> League</span></td><td 
width='41' class='tekst'><input type="radio" name="klasse" id="Dames 1ste Divisie" value="Ladies 1th League" <?php if ($klasse == "Dames 1ste Divisie") {print("checked= \"checked\"");} else{ print("");} ?>/></td></tr>
<tr><td width='262' class='tekst'>Man 2<sup>nd</sup> League</td><td><input type="radio" name="klasse" id="Heren 2de Divisie" value="Man 2nd League" <?php if ($klasse == "Heren 2de Divisie") {print("checked= \"checked\"");} else{ print("");} ?>/></td><td width='193'><span class="tekst">Ladies 2<sup>nd</sup> League</span></td><td 
width='41' class='tekst'><input type="radio" name="klasse" id="Dames 2de Divisie" value="Ladies 2nd League" <?php if ($klasse == "Dames 2de Divisie") {print("checked= \"checked\"");} else{ print("");} ?>/></td></tr>
<tr><td width='262' class='tekst'>Man 3<sup>th</sup> League</td><td><input type="radio" name="klasse" id="Heren 3de Divisie" value="Man 3th League" <?php if ($klasse == "Heren 3de Divisie") {print("checked= \"checked\"");} else{ print("");} ?>/></td><td width='193'><span class="tekst">Ladies 3<sup>th</sup> League</span></td><td 
width='41' class='tekst'><input type="radio" name="klasse" id="Dames 3de Divisie" value="Ladies 3th League" <?php if ($klasse == "Dames 3de Divisie") {print("checked= \"checked\"");} else{ print("");} ?>/></td></tr>
<tr><td width='262' class='tekst'>Man Top Class</td><td><input type="radio" name="klasse" id="Heren Top Klasse" value="Man Top Class" <?php if ($klasse == "Heren Top Klasse") {print("checked= \"checked\"");} else{ print("");} ?>/></td><td width='193'><span class="tekst">Ladies Top Class</span></td><td 
width='41' class='tekst'><input type="radio" name="klasse" id="Dames Top Klasse" value="Ladies Top Class" <?php if ($klasse == "Dames Top Klasse") {print("checked= \"checked\"");} else{ print("");} ?>/></td></tr>
<tr><td width='262' class='tekst'>Man 1<sup>th</sup> Class</td><td><input type="radio" name="klasse" id="Heren 1ste klasse" value="Man 1th Class" <?php if ($klasse == "Heren 1ste klasse") {print("checked= \"checked\"");} else{ print("");} ?>/></td><td width='193'><span class="tekst">Ladies 1<sup>th</sup> Class</span></td><td 
width='41' class='tekst'><input type="radio" name="klasse" id="Dames 1ste klasse" value="Ladies 1th Class" <?php if ($klasse == "Dames 1ste klasse") {print("checked= \"checked\"");} else{ print("");} ?>/></td></tr>
<tr><td width='262' class='tekst'>Man 2<sup>nd</sup> Class</td><td><input type="radio" name="klasse" id="Heren 2de klasse" value="Man 2nd Class" <?php if ($klasse == "Heren 2de klasse") {print("checked= \"checked\"");} else{ print("");} ?>/></td><td width='193'><span class="tekst">Ladies 2<sup>nd</sup> Class</span></td><td 
width='41' class='tekst'><input type="radio" name="klasse" id="Dames 2de klasse" value="Ladies 2nd Class" <?php if ($klasse == "Dames 2de klasse") {print("checked= \"checked\"");} else{ print("");} ?>/></td></tr>
<tr><td width='262' class='tekst'>Man 3<sup>th</sup> Class</td><td><input type="radio" name="klasse" id="Heren 3de klasse" value="Man 3th Class" <?php if ($klasse == "Heren 3de klasse") {print("checked= \"checked\"");} else{ print("");} ?>/></td><td width='193'><span class="tekst">Ladies 3<sup>th</sup> Class</span></td><td 
width='41' class='tekst'><input type="radio" name="klasse" id="Dames 3de klasse" value="Ladies 3th Class" <?php if ($klasse == "Dames 3de klasse") {print("checked= \"checked\"");} else{ print("");} ?>/></td></tr>
<tr><td width='262' class='tekst'>Man Recreational</td><td><input type="radio" name="klasse" id="Heren Recreatie" value="Man Recreational" <?php if ($klasse == "Heren Recreatie") {print("checked= \"checked\"");} else{ print("");} ?>/></td><td width='193'><span class="tekst">Ladies Recreational</span></td><td 
width='41' class='tekst'><input type="radio" name="klasse" id="Dames Recreatie" value="Ladies Recreational" <?php if ($klasse == "Dames Recreatie") {print("checked= \"checked\"");} else{ print("");} ?>/></td></tr>
<tr><td width='262' class='tekst'>Mixed 2<sup>nd</sup>/3<sup>th</sup> Class</td><td><input type="radio" name="klasse" id="Mixed 2de 3de klasse" value="Mixed 2nd/3th Class" <?php if ($klasse == "Mixed 2de 3de klasse") {print("checked= \"checked\"");} else{ print("");} ?>/></td><td width='193'><span class="tekst">Mixed Recreational</span></td><td 
width='41' class='tekst'><input type="radio" name="klasse" id="Mixed Recreatie" value="Mixed Recreational" <?php if ($klasse == "Mixed Recreatie") {print("checked= \"checked\"");} else{ print("");} ?>/></td></tr>
  <tr>
    <td>&nbsp;</td>
    <td><?php if ($verzenden == "true" && empty($klasse)){ 
   					print ("Please fill your league/class correctly"); 
					}?></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><input type="reset" name="opnieuw" id="opnieuw" value="Erase" /></td>
    <td><input type="submit" name="verzenden" id="verzenden" value="Go on with your entry" />
      (always click twice)</td>
    <td>&nbsp;</td>
  </tr>
  </form>
</table>
<p class="style1">&nbsp;</p>
</body>
</html>