-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsignup.php
More file actions
49 lines (40 loc) · 1.54 KB
/
signup.php
File metadata and controls
49 lines (40 loc) · 1.54 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
<?php
require_once './config.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title> Desvsbook </title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"/>
<link rel="stylesheet" href="<?=$base;?>/assets/css/login.css" />
</head>
<body>
<header>
<div class="container">
<a href="<?=$base;?>/"><img src="<?=$base;?>/assets/images/devsbook_logo.png" /></a>
</div>
</header>
<section class="container main">
<form method="POST" action="<?=$base;?>/signup_action.php">
<?php if(!empty($_SESSION['flash'])): ?>
<?= $_SESSION['flash']; ?>
<?= $_SESSION['flash'] = ''; ?>
<?php endif;?>
<input placeholder="Digite seu nome completo" class="input" type="text" name="name" />
<input placeholder="Digite seu e-mail" class="input" type="email" name="email" />
<input placeholder="Digite sua senha" class="input" type="password" name="password" />
<input placeholder="Digite sua data de nascimento" class="input" type="text" name="birthdate" id="birthdate"/>
<input class="button" type="submit" value="Fazer cadastro" />
<a href="<?=$base;?>/login.php"> Já tem conta? Faça login</a>
</form>
</section>
<script src="https://unpkg.com/imask"> </script>
<script>
IMask(
document.getElementById('birthdate'),
{mask: '00/00/0000'}
);
</script>
</body>
</html>