-
Notifications
You must be signed in to change notification settings - Fork 0
/
cadastro.php
34 lines (30 loc) · 1.59 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
<?php
require 'autoload.php';
$usuario = new \App\Alura\Usuario($_POST['nome'], $_POST['senha'], $_POST['genero']);
$contato = new \App\Alura\Contato($_POST['email'], $_POST['endereco'], $_POST['cep'], $_POST['telefone']);
?>
<!DOCTYPE html>
<html lang="pt-br">
<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="bootstrap.min.css">
<title>Curso Strings</title>
</head>
<body>
<div class="mx-5 my-5">
<h1>Cadastro feito com sucesso.</h1>
<p><?php echo $usuario->getTratamento(); ?>, seguem os dados de sua conta:</p>
<ul class="list-group">
<li class="list-group-item">Primeiro nome: <?php echo htmlspecialchars( $usuario->getNome()); ?></li class="list-group-item">
<li class="list-group-item">Sobrenome: <?php echo htmlspecialchars( $usuario->getSobrenome()); ?></li class="list-group-item">
<li class="list-group-item">Usuário: <?php echo htmlspecialchars( $contato->getUsuario()); ?> </li class="list-group-item">
<li class="list-group-item">Senha: <?php echo htmlspecialchars($usuario->getSenha()); ?> </li class="list-group-item">
<li class="list-group-item">Telefone: <?php echo htmlspecialchars($contato->getTelefone()); ?> </li class="list-group-item">
<li class="list-group-item">Email: <?php echo htmlspecialchars( $contato->getEmail()); ?> </li class="list-group-item">
<li class="list-group-item">Endereço: <?php echo htmlspecialchars($contato->getEnderecoCep()); ?> </li class="list-group-item">
</ul>
</div>
</body>
</html>