<?php
session_start(); //Iniciar a sessao
?>
<!DOCTYPE HTML>
<html lang="pt-br">

<head>
    <meta charset="utf-8">
    <title>Celke - Cadastrar</title>
    <style>
        .form-group {
            padding: 10px;
        }
    </style>
</head>

<body>
    <h1>Cadastrar Usuário</h1>

    <?php
    if(isset($_SESSION['msg'])){
        echo $_SESSION['msg'];
        unset($_SESSION['msg']);
    }
    ?>

    <form method="POST" action="processa.php">
        <div id="formulario">
            <div class="form-group">
                <label>Nome: </label>
                <input type="text" name="nome[]" id="nome" placeholder="Nome do usuário" />

                <label>E-mail: </label>
                <input type="email" name="email[]" id="email" placeholder="E-mail do usuário" />

                <button type="button" onclick="adicionarCampo()"> + </button>
            </div>
        </div>

        <div class="form-group">
            <input type="submit" value="Cadastrar" name="CadUsuario" />
        </div>
    </form>

    <script src="js/custom.js"></script>
</body>

</html>