78 lines
2.1 KiB
PHP
78 lines
2.1 KiB
PHP
<?
|
|
$rnd_link = md5($_POST['email']);
|
|
include './lib/get_races.php';
|
|
foreach($races as $race){
|
|
if($race['ID'] == $_POST['race']){
|
|
$selected_race['NAME'] = $race['NAME'];
|
|
$selected_race['ID'] = $race['ID'];
|
|
}
|
|
|
|
}
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="cs">
|
|
<head>
|
|
<title>Kolské Borec - Registrace</title>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
|
|
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-black.css">
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css">
|
|
</head>
|
|
|
|
<body class="w3-black w3-center">
|
|
<div class="w3-content w3-padding">
|
|
<h1>Rekapitulace Registrace</h1>
|
|
<table class="w3-table w3-striped w3-bordered w3-border w3-white">
|
|
<tr>
|
|
<th>Jméno</th>
|
|
<th>Email</th>
|
|
<th>Telefon</th>
|
|
<th>Přezdívka / Team</th>
|
|
<th>Závod</th>
|
|
<th>Email check link</th>
|
|
</tr>
|
|
<tr>
|
|
<td><? echo $_POST['fname'].' '.$_POST['lname']; ?></td>
|
|
<td><? echo $_POST['email']; ?></td>
|
|
<td><? echo $_POST['phone']; ?></td>
|
|
<td><? echo $_POST['nick']; ?></td>
|
|
<td><? echo $selected_race['NAME']; ?></td>
|
|
<td><a href="<? echo $_SERVER['HTTP_REFERER'].$_SERVER['PHP_SELF'].'?link='.$rnd_link; ?>"><? echo $_SERVER['HTTP_REFERER'].$_SERVER['PHP_SELF'].'?link='.$rnd_link; ?></a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="w3-padding">
|
|
<form method="post" action="./register.php">
|
|
<input type="hidden">
|
|
<input type="submit" class="w3-button w3-green w3-round-large" value="Potvrzuji">
|
|
</form>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
<?
|
|
|
|
|
|
|
|
|
|
// / $servername = "db";
|
|
// / $username = 'kalskeborec';
|
|
// / $password = 'Kalskeborec1!23$';
|
|
// / $db = 'kalskeborec';
|
|
// /
|
|
// / // Create connection
|
|
// / $conn = new mysqli($servername, $username, $password, $db);
|
|
// /
|
|
// / // Check connection
|
|
// / if ($conn->connect_error) {
|
|
// / die("Connection failed: " . $conn->connect_error);
|
|
// / }
|
|
// /
|
|
// /
|
|
// / $conn->close();
|
|
?>
|