summaryrefslogtreecommitdiffstats
path: root/pages/creategame.php
diff options
context:
space:
mode:
authorSnap <snapwilliam@gmail.com>2015-05-01 16:26:15 -0700
committerSnap <snapwilliam@gmail.com>2015-05-01 16:26:15 -0700
commit01cb30b61739780e680b501e7719fb23749ecaeb (patch)
tree714598bf80266232290c2591225f72b4f6a1042c /pages/creategame.php
parente6b60448bc08df316daf220db8ecfddc58aefe84 (diff)
downloadpathery-01cb30b61739780e680b501e7719fb23749ecaeb.tar.xz
Versus Matches - Initial code and testing.
Diffstat (limited to 'pages/creategame.php')
-rw-r--r--pages/creategame.php50
1 files changed, 50 insertions, 0 deletions
diff --git a/pages/creategame.php b/pages/creategame.php
new file mode 100644
index 0000000..ee8af67
--- /dev/null
+++ b/pages/creategame.php
@@ -0,0 +1,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();
+?> \ No newline at end of file