summaryrefslogtreecommitdiffstats
path: root/pages/creategame.php
blob: ee8af67117b1a18d95639046972cfa1857ee58df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
//If thar be a game to be creatin
if (isset($_POST['playerCount'])) {

	//Confirm yarn data and fill them be databases. Hah har!
	
	
	
	$gameID = 22;
	
	//Return tiz be the gameID and change yarn header location! to games?id=ID
	header("Location: $mydomain"."games?ID=" . $gameID);
}

htmlHeader(array(), 'Create Game', 'Create a game');
topbar($headerLinks);
?>


<div class="wrapper" style="width:600px;">
<h2>Create Game</h2>

<p>

Doesn't matter what you do - you'll go to games?ID=22 ! (Testing still; sorry)
</p>

<form action="createGame" method="post" name="gameOptions">

<select id='playerCount' name='playerCount'>
	<option value='2' selected='selected'>2</option>
	<option value='3'>3</option>
	<option value='4'>4</option>
	<option value='5'>5</option>

</select>
<br /><br />

<input type="checkbox" name="smartTime" value="yes" /> Use Smart-Time? *
<br /><br />
<input type="submit" value="Create Game" />

</form>

</div>


<?php
htmlFooter();
?>