<html>
<head>
<title>Mijn eerste php script</title>
<script language="JavaScript" type="text/javascript">
<!--
function check()
{
if ((document.form3.usernamecheck.checked == true)&&(document.form3.nameiscorrect2.checked == true)&&(document.form3.agree.checked == true))
{
document.form3.verzenden.disabled = false;
} else
{
document.form3.verzenden.disabled = true;
}
}
-->
</script>
</head>
<body>
<?php
if (isset($_POST['verzenden'])){ ?>
<script>document.getElementById('spanuser').display='block';</script>
<?php
;}
?>
<script>document.getElementById('spanemail').display='block';</script>
<?php
;}
?>
<script>document.getElementById('spanlink').display='block';</script>
<?php
;}
?>
<script>document.getElementById('spanarmy').display='block';</script>
<?php
;}
if($_POST['alliance'] == 0)
{
?>
<script>document.getElementById('spanalliance').display='block';</script>
<?php
;}
else
{
?>
You are succesfully signed up.
<?php
;}
;}else{
?>
<form name="form3" method="post" action="">
<center>
<div style="border-collapse:collapse;border:1px solid;width:750px">
<center>
<table border="0" bordercolor="" style="border-collapse:collapse;" width="100%">
<tr>
<th height="30" bgcolor="darkblue" align="center" colspan="3"><font size="5">Registrations Profile</font></th>
</tr>
<tr>
<td colspan="3" bgcolor="blue"><font color=""> Vitals - pay careful attention to what you enter, it's hard to log in if you mess any of it up</font></td>
</tr>
<tr>
<td width="20%" valign="bottom">Username:</td>
<td><font size="2"> This is required to be exactly the same as your Kings of Chaos username; the system will not work with any other name. Watch out for capitalization. (To be sure you get the right name, simply go to Command Center in Kings of Chaos, highlight your name at the top right corner of the User Info table, and paste it here.)<font></td>
</tr>
<tr>
<td valign="top"><input type="textinput" name="username" size="20" value=""/></td>
<td><span id="spanuser" style="display:none"><font color="red">No valid Username!</font></span><input type="checkbox" name="usernamecheck" onclick="javascript:check();"/>OK, I checked my username at Kings of Chaos and put it in the box correctly. <b>(MUST be checked)</b></td>
</tr>
<tr>
<td width="20%" valign="bottom">Email address:</td>
</tr>
<tr>
<td valign="top"><input type="textinput" name="email" size="20" value=""/> </td>
<td><span id="spanemail"style="display:none"><font color="red">No valid Emailaddress!</font></span><font color="red"> If you use a free webmail service such as Yahoo! or Hotmail, it is highly likely that your password will disappear into their spam filters. Please make sure that you NOTE DOWN YOUR PASSWORD when it appears on this site in a moment.</font></td>
</tr>
<tr>
<td width="20%" valign="bottom">Kings of Chaos Link:</td>
</tr>
<tr>
<td colspan="2"><input type="textinput" name="userlink" size="50" value=""/> <span id="spanlink" style="display:none"><font color="red">No valid Uniquelink!</font></span>
</td>
</tr>
<tr>
<td colspan="2" height="40"></td>
</tr>
<tr>
<td colspan="2" height="30"></td>
</tr>
<tr>
<td width="20%" valign="bottom">Current Army Size:</td>
</tr>
<tr>
<td width="20%" valign="bottom"><input type="textinput" name="armysize" size="5" />
<select name="race">
<option value="Humans">Humans</option>
<option value="Dwarves">Dwarves</option>
<option value="Elves">Elves</option>
<option value="Orcs">Orcs</option>
</select>
<span id="spanamry"style="display:none"><font color="red">No valid Armysize!</font></span>
</td>
</tr>
<tr>
<td colspan="2" height="10"></td>
</tr>
<tr bgcolor="darkblue">
<td colspan="2" height="30"><font size="5"><b>Alliance</b></font></td>
</tr>
<tr>
<td>
<select name="alliance">
<option value="0" selected="selected" >Select an alliance from the list</option>
<option value="1" >LOG member</option>
<option value="2" >Lordclicker User</option>
</select>
</td>
<td> Please select 'Lordclicker User', unless you are a member of Lords of Gondor. <span id="spanalliance" style="display:none"><font color="red">Please select an alliance!</font></span><br /><input type="checkbox" onclick="javascript:check();" name="nameiscorrect2"/>I have selected an appropriate alliance <b>(MUST be checked)</b></td>
</tr>
<tr bgcolor="darkblue">
<td colspan="2" height="30"><font size="5"><b>Agreement</b></font></td>
</tr>
<tr>
<td colspan="2">
You need to have checked all three check boxes in this form.<br /><br />
Checking this one signifies one of the following two: <ol><li>that you are a member of Lords of Gondor or are in its command chain, and as such, you will not attack or attempt to recruit as an officer ANYONE in Lords of Gondor or its command chain, and that you will uphold the high standards of gameplay and citizenship that have come to be the trademarks of Lords of Gondor; that you will not break Kings of Chaos rules, spam or harass people in the game or out; that you understand you must most definitely kick ass in the game. (That's what we're all about)<br /><br /><b>or</b><br/><br/></li><li>that you agree that you are NOT in an alliance which is an enemy of Lords of Gondor</li></ol>
<input type="checkbox" name="agree" onclick="javascript:check();"/> I agree to one of the two above statements. <b>(MUST be checked)</b>
</td>
</tr>
<tr>
<td colspan="2" height="10"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="verzenden" value="Sign up" disabled/></td>
</tr>
<tr>
<td colspan="2" height="10"></td>
</tr>
</table>
</center>
</div>
<br />
</center>
</form>
<?php
;}
?>
</body>
</html>