-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit.php
35 lines (27 loc) · 1.41 KB
/
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
<?php
include_once("./templates/header.php")
?>
<div class="container">
<?php include_once("./templates/backBtn.html");?>
<h1>Editar contato</h1>
<form id="create-form" action="<?=$BASE_URL?>config/process.php" method="POST">
<input type="hidden" name="type" value="edit">
<input type="hidden" name="id" value="<?= $contact['id']?>">
<div class="form-group">
<label for="name">Nome do contato:</label>
<input type="text" class="form-control" name="name" id="name" placeholder="Insira o nome" value="<?= $contact['name']?>" required>
</div>
<div class="form-group">
<label for="phone">Telefone do contato:</label>
<input type="text" class="form-control" name="phone" id="phone" placeholder="Insira o telefone" value="<?= $contact['phone']?>" required>
</div>
<div class="form-group">
<label for="observations">Observações do contato:</label>
<textarea type="text" class="form-control" name="observations" id="observations" placeholder="Insira suas observações deste contato" rows="3"><?= $contact['observations']?></textarea>
</div>
<button type="submit" class="btn btn-primary">Atualizar</button>
</form>
</div>
<?php
include_once("./templates/footer.php")
?>