-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.php
36 lines (36 loc) · 893 Bytes
/
edit.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
35
36
<?php
session_start();
if (@$_SESSION["adm"]) {
header("location:PHP/logout.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Edit</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="estilo.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
</head>
<body>
<?php require 'menu.php'; ?>
<div class="edit">
<h1>Editar cadastro</h1>
<?php require 'dados_user.php'; ?><a href="PHP/delete.php">Desistir da conta</a>
</div>
<?php require 'rodape.php'; ?>
</body>
</html>
<script>
function validacao(){
senha = document.form.senha.value
senhad = document.form.senhad.value
if (senha != senhad){
alert ('As senhas devem ser iguais!');
document.form.getElementById('senhad').focus();
document.getElementById('form').action = "";
}else{
document.getElementById('form').action = "PHP/clienteModelo.php";
}
}
</script>