upload.php 1st draft

This commit is contained in:
Ubuntu 2019-04-20 16:27:51 -04:00
parent a4832358ea
commit 2168199135

34
upload.php Normal file
View File

@ -0,0 +1,34 @@
<html>
<head>
<title>FightHub - Upload</title>
<link rel="stylesheet" href="main.css">
<script src="scripts/main.js"></script>
</head>
<body>
<?php
$servername = "localhost";
$username = "fighthubuser";
$password = "cC33dC8W";
$conn = new mysqli($servername, $username, $password);
if($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$url = $_GET['url'];
$name = $_GET['name'];
$username = $_GET['username'];
$description = $_GET['description'];
$event_date = $_GET['date'];
$length = $_GET['length'];
$characters = $_GET['characters'];
$players = $_GET['players'];
$game = $_GET['game'];
$stage = $_GET['stage'];
echo "<h1>" . $game . "</h1>";
?>
</body>
</html>