-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcadastrar.php
36 lines (32 loc) · 1.03 KB
/
cadastrar.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
require_once './FuncoesDB.php';
if (isset($_POST['login'])) {
$funcao = new FuncoesDB();
$funcao->inserir($_POST['login'], $_POST['password'], $_POST['email'], $_POST['saldo']);
$funcao->close();
}
?>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<a href="index.php">Voltar</a>
<div>
<form name="formulario" action="" method="post" >
<label>Login: </label>
<input type="text" required="required" name="login"><br>
<label>Password: </label>
<input type="text" required="required" name="password"><br>
<label>Email: </label>
<input type="text" required="required" name="email"><br>
<label>Saldo: </label>
<input type="text" required="required" name="saldo"><br>
<input type="submit" name="s" value="Cadastrar"> <br> <br>
</form>
</div>
<?php
?>
</body>
</html>