-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcadastro.php
More file actions
71 lines (58 loc) · 2.31 KB
/
Copy pathcadastro.php
File metadata and controls
71 lines (58 loc) · 2.31 KB
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
<?php
require 'init.php';
$nome = $_POST['nome'];
$email = $_POST['email'];
$celular = $_POST['celular'];
$cep = $_POST['cep'];
if ($_POST['cadastrar'] == '1') {
$novoUser = (new BD())->insertCadastro($celular, $email, $nome, $cep);
unset($_POST);
header("Location: " . $_SERVER['PHP_SELF']);
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel='stylesheet' href='https://use.fontawesome.com/releases/v5.4.1/css/all.css' integrity='sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz' crossorigin='anonymous'>
<link href="fonts/fonts.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>comuREDE</title>
</head>
<body>
<header class="header">
<img class="header__logo" src="images/logo-comuREDE_02.png" alt="Logo comuREDE">
</header>
<main class="container">
<form class="container__formRegister" method="POST" action="">
<label class="formRegister__item" for="nome">
nome
<input class="formRegister__itemInput" type="text" name="nome">
</label>
<label class="formRegister__item" for="email">
email
<input class="formRegister__itemInput" type="email" name="email">
</label>
<label class="formRegister__item" for="celular">
celular
<input class="formRegister__itemInput" type="text" maxlength="11" name="celular">
</label>
<label class="formRegister__item" for="cep">
cep
<input class="formRegister__itemInput" type="text" maxlength="8" name="cep">
</label>
<button class="formRegister__itemButton btn__default">Cadastrar</button>
<input type="hidden" id="" name="cadastrar" value="1">
</form>
</main>
<footer class="footer">
<h2 class="footer__title">Ajude a propagar essa ideia ;)</h2>
<i class="footer__iconsSocial fab fa-facebook-f"></i>
<i class="footer__iconsSocial fab fa-instagram"></i>
<i class="footer__iconsSocial fab fa-twitter"></i>
</footer>
</body>
</html>