forked from tec-webII-2n11/natalia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperfil.php
More file actions
41 lines (41 loc) · 1.31 KB
/
Copy pathperfil.php
File metadata and controls
41 lines (41 loc) · 1.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
<?php
include 'layouts/header.php';
include 'layouts/menu.php';
if(isset($_SESSION['id'])) {
?>
<div class="container cadastro col-md-4">
<h1>Perfil de <?php echo $_SESSION['nome']; ?> </h1>
<form class="form-group" method="POST" action="alterar-perfil.php">
<div class="form-group">
<label for="name">ID: <?php echo $_SESSION['id']?></label>
</div>
<div class="form-group">
<label for="name">Nome Completo</label>
<p><?php echo $_SESSION['nome']; ?></p>
</div>
<div class="form-group">
<label for="user">Usuario</label>
<p><?php echo $_SESSION['user']; ?></p>
</div>
<div class="form-group">
<label for="email">Email</label>
<p><?php echo $_SESSION['email']; ?></p>
</div>
<div class="form-group">
<label for="tel">Telefone</label>
<p><?php echo $_SESSION['tel']; ?></p>
</div>
<div class="form-group">
<label for="end">Endereço</label>
<p><?php echo $_SESSION['end']; ?></p>
</div>
<button type="submit" class="btn btn-default">Alterar Dados</button>
</form>
</div>
<?php
include 'layouts/footer.php';
} else {
header('Location: ./home.php');
exit;
}
?>