-
Notifications
You must be signed in to change notification settings - Fork 0
/
cadastro.php
137 lines (133 loc) · 3.96 KB
/
cadastro.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
if(isset($_POST['submit'])){
/* print_r('Nome: ' . $_POST['nome']);
print_r('<br>');
print_r('Email: ' . $_POST['email']);
print_r('<br>');
print_r('Discord: ' . $_POST['discord']);
print_r('<br>');
print_r('Sexo: ' . $_POST['sexo']);
print_r('<br>');
print_r('Nascimento: ' . $_POST['data_nascimento']);
print_r('<br>');
print_r('NickName: ' . $_POST['nickname']);
*/
include_once('config.php');
$nome = $_POST['nome'];
$email = $_POST['email'];
$discord = $_POST['discord'];
$sexo = $_POST['sexo'];
$nascimento = $_POST['data_nascimento'];
$nickname = $_POST['nickname'];
$senha = $_POST['senha'];
$result = mysqli_query($conexao, "INSERT INTO cadastro(nome, email, discord, sexo, nascimento, senha, nickname) VALUES ('$nome', '$email', '$discord', '$sexo', '$nascimento', '$senha', '$nickname')");
header('Location: login.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FORMULÁRIO LUVS</title>
<link rel="stylesheet" href="style_form.css" />
</head>
<body>
<a href="home.php">Voltar</a>
<div class="box">
<form action="cadastro.php" method="post">
<fieldset>
<legend><b>Formulário de Players</b></legend>
<br />
<div class="inputBox">
<input
type="text"
name="nome"
id="nome"
class="inputUser"
required
/>
<label for="nome">Nome Completo</label>
</div>
<br /><br />
<div class="inputBox">
<input
type="email"
name="email"
id="email"
class="inputUser"
required
/>
<label for="email">Email</label>
</div>
<br /><br />
<div class="inputBox">
<input
type="text"
name="discord"
id="discord"
class="inputUser"
required
/>
<label for="discord">Discord</label>
</div>
<p>SEXO:</p>
<input
type="radio"
id="feminino"
name="sexo"
value="feminino"
required
/>
<label for="feminino">Feminino</label>
<input
type="radio"
id="masculino"
name="sexo"
value="masculino"
required
/>
<label for="masculino">Masculino</label>
<input type="radio" id="outro" name="sexo" value="outro" required />
<label for="outro">Outro</label>
<br /><br />
<div class="inputBox">
<label for="data_nascimento"><b>Data de Nascimento</b></label>
<input
type="date"
name="data_nascimento"
id="data_nascimento"
class="inputUser"
required
/>
</div>
<br /><br />
<div class="inputBox">
<input
type="password"
name="senha"
id="senha"
class="inputUser"
required
/>
<label for="senha">Senha</label>
</div>
<br /><br />
<div class="inputBox">
<input
type="text"
name="nickname"
id="nickname"
class="inputUser"
required
/>
<label for="nickname">NickName</label>
</div>
<br /><br />
<input type="submit" name="submit" id="submit" />
</fieldset>
</form>
</div>
</body>
</html>