Game-Jaming/Backend/Main.php

40 lines
965 B
PHP
Raw Normal View History

2021-03-02 11:40:44 +00:00
<?php
2021-03-03 11:56:14 +00:00
use Backend\Models\GameJam;
2021-03-04 09:19:58 +00:00
2021-03-03 11:48:49 +00:00
require "../bootstrap.php";
2021-03-03 11:56:14 +00:00
$gameJam = GameJam::firstOrCreate([
2021-03-03 11:48:49 +00:00
'name' => "First game jam ever!", 'startTime' => "2021-03-03T12:40", 'endTime' => "2021-04-03T12:40", 'description' => "Det her et en beskrivelse"
]);
2021-03-04 09:19:58 +00:00
2021-03-04 12:13:07 +00:00
?>
<!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>
2021-03-04 13:12:14 +00:00
2021-03-04 12:13:07 +00:00
</body>
</html>