-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuned.php
50 lines (42 loc) · 1.4 KB
/
funed.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
error_reporting(0);
$cpf = $_GET['id'];
include 'menu.php';
include 'conexao.php';
$sql = "SELECT * FROM Funcionario WHERE CPF=$cpf";
$con = $conn->query($sql) or die($conn->error);
$dado = $con->fetch_assoc();
?>
<!DOCTYPE html>
<html>
<head>
<title >Cadastro Funcionários</title>
<link rel="stylesheet" type="text/css" media="screen" href="CS.css">
<meta charset="utf-8">
</head>
<body>
<nav class="box">
<div style="align-content: center"></div>
<form action="Edit funcionario.php?cpf=<?php echo $cpf; ?>" method="POST">
<h2 style="color:black " >Cadastro Funcionário:</h2>
Nome: <br>
<input style="height: 30px" type="text" name="nome" id="nome" size="57" value = "<?php echo $dado['nome']; ?>"/>
<br>
E-mail: <br>
<input style="height: 30px" type="email" name="email" id="email" size="57" value = "<?php echo $dado['email']; ?>"/>
<br>
Senha: <br>
<input style="height: 30px" type="password" name="senha" id="senha" size="57" value = "<?php echo $dado['Senha']; ?>"/>
<br>
<p> CPF: <?php echo $cpf; ?> </p>
<br>
<br>
<br>
<br>
<input class="submit" style="height: 40px" type="submit" name="submit" value="Enviar" >
</form>
</div>
</nav>
</body>
</html>
<?php $conn->close(); ?>