Game-Jaming/Backend/Main.php

39 lines
964 B
PHP

<?php
use Backend\Models\GameJam;
require "../bootstrap.php";
$gameJam = GameJam::firstOrCreate([
'name' => "First game jam ever!", 'startTime' => "2021-03-03T12:40", 'endTime' => "2021-04-03T12:40", 'description' => "Det her et en beskrivelse"
]);
?>
<!DOCTYPE html>
<html>
<title>HTML Tutorial</title>
<body>
<form action="SigningUp.php" method="POST">
<input type="text" name="groupName" placeholder="Group name">
<input type="number" name="groupAmount" placeholder="Group Amount">
<input type="number" name="gameJamId" placeholder="Game Jam id">
<input type="password" name="password" placeholder="password">
<input type="submit" name="reg_group" value="Register">
</form>
<form action="Login.php" method="POST">
<input type="text" name="groupName" placeholder="Group name">
<input type="password" name="password" placeholder="password">
<input type="submit" name="login" value="login">
</form>
</body>
</html>