"cadastrar.php"
Bootstrap 4.1.1 Snippet by rafaelduarte7

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<?php
require_once 'classes/usuarios.php';
$u = new Usuario;
?>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>Cadastre-se</title>
<link rel="stylesheet" href="css/estilo.css">
</head>
<body>
<div id="corpo-form-Cad">
<h1>Cadastrar</h1>
<form method="POST">
<input type="text" name="nome" placeholder="Nome Completo" maxlength="30">
<input type="text" name="telefone" placeholder="telefone" maxlength="30">
<input type="email" name="email" placeholder="Usuário" maxlength="40">
<input type="password" name="senha" placeholder="Senha" maxlength="15">
<input type="password" name="confSenha" placeholder="Confirmar Senha" maxlength="15">
<input type="submit" value="Cadastrar">
<a href="telalogin.php">Já concluiu seu cadastro?<strong>faça login aqui</strong></a>
</form>
</div>
<?php
//verificar se clicou no botao
if(isset($_POST['nome']))
{
$nome = addslashes($_POST['nome']);
$telefone = addslashes($_POST['telefone']);
$email = addslashes($_POST['email']);
$senha = addslashes($_POST['senha']);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
*{
margin: 0px;
padding: 0px;
}
body{
background-image: url(../img/foto2.jpg);
background-position: 50% 0%;
color: black;
font-family: arial;
}
input{
display: block;
height: 55px;
width: 400px;
margin: 10px;
border-radius: 30px;
border:1px solid white;
font-size: 16pt;
padding: 5px 10px;
background-color: rgba(255,255,255,0.01);
color: white;
outline: none;
}
div#corpo-form{
width: 420px;
margin: 130px auto 0px auto;
}
div#corpo-form-Cad{
width: 420px;
margin: 80px auto 0px auto;
}
div#corpo-form h1,div#corpo-form-Cad{
text-align: center;
padding: 20px;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: