inserirUsers.php 1.61 KB
<!DOCTYPE html>
<html lang="pt-br">
<head>
    <meta charset="utf-8" />
    <title>Cadastro de usuários</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" />
</head>
<body>
<?php
    if (isset($this->dados)){
        echo $this->dados['msg'];
    }
?>
<form name="formInserirUser" action="" method="post">
    <div class="form-group">
        <label for="iNome">Nome</label>
        <input type="text" class="form-control" name="nome" id="iNome" placeholder="Seu nome aqui..."
                value="<?php if (isset($this->dados['nome'])){ echo $this->dados['nome']; }?>" />
    </div>
    <div class="form-group">
        <label for="iEmail">E-mail</label>
        <input type="email" class="form-control" name="email" id="iEmail" placeholder="nome@examplo.com"
               value="<?php if (isset($this->dados['email'])){ echo $this->dados['email']; }?>"/>
    </div>
    <div class="form-group">
        <label for="iPass">Password</label>
        <input type="password" class="form-control" name="password" id="iPass" placeholder="Sua senha aqui..."
               value="" />
    </div>
    <button type="submit" name="enviarInserirUser" class="btn btn-primary">Cadastrar</button>
</form>

    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
</body>
</html>