-
Notifications
You must be signed in to change notification settings - Fork 0
/
loginguest.php
81 lines (69 loc) · 2.85 KB
/
loginguest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Kontynuuj jako gość</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
</head>
<body class="bg-dark hold-transition loginquest-page text-light">
<?php require_once "header.php"; ?>
<div class="bg-dark content px-5 py-4">
<?php
if (isset($_SESSION["error"])) {
echo <<< ERROR
<div class="fixed-top alert alert-danger alert-dismissible m-3">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h5><i class="icon fas fa-ban"></i>Uwaga!</h5>
$_SESSION[error]
</div>
ERROR;
unset($_SESSION ["error"]);
}
if (isset($_SESSION["success"])) {
echo <<< ERROR
<div class="fixed-top alert alert-success alert-dismissible m-3">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h5><i class="icon fas fa-check"></i>Komunikat!</h5>
$_SESSION[success]
</div>
ERROR;
unset($_SESSION["success"]);
}
?>
<div class="card card-outline card-primary">
<?php require_once "header.php"; ?>
<div class="bg-dark text-light">
<div class="card-body">
<h3 class="login-box-msg">Kontynuuj jako gość</h3>
<form action="scripts/loginguest.php" method="post">
<div class="my-3">
<label for="first_name" class="form-label">Imię</label>
<input type="text" class="form-control" placeholder="Podaj imię" name="first_name" id="first_name">
</div>
<div class="my-3">
<label for="last_name" class="form-label">Nazwisko</label>
<input type="text" class="form-control" placeholder="Podaj nazwisko" name="last_name" id="last_name">
</div>
<div class="my-3">
<label for="email1" class="form-label">Email</label>
<input type="email" class="form-control" placeholder="Podaj email" name="email1" id="email1">
</div>
<div class="my-3">
<label for="email2" class="form-label">Powtórz email</label>
<input type="email" class="form-control" placeholder="Powtórz email" name="email2" id="email2">
</div>
<div class="col-5">
<!-----form action="payment.php"---->
<button type="submit" class="btn btn-primary btn-block">Kontynuuj</button>
<!----/form---->
</div>
</form>
</div>
</div>
<script src="./js/closeAlert.js"></script>
</body>
</html>