<!DOCTYPE html>
<html lang="PT_BR">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cadastro Fábrica</title>
    
    <link
      rel="shortcut icon"
      href="https://pbs.twimg.com/profile_images/674285053107707904/DffC3jYg_400x400.png"
      type="image/x-icon"
    />

    <link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.0/css/line.css">

    <link rel="stylesheet" href="../style/style.css">
    <link rel="stylesheet" href="../style/cadastro.css">

</head>
<body>

    <div class="conteiner">

        <div class="conteiner-box-form">

        <div class="divider"></div>

            <form method="post" action="./cadastro.php">

               

                <h2>Cadastro Fábrica</h2> 
                
                <label for="name" class="sr-only">Nome</label>
                <input type="text" name="userName" id="name" placeholder="Infome seu nome" required>
                <br>

                <label for="idade" class="sr-only">Idade</label>
                <input type="number" name="userIdade" id="idade" placeholder="Infome sua idade" required>
                <br>

                <label for="escola" class="sr-only">Escola</label>
                <input type="text" name="userEscola" id="escola" placeholder="Infome sua escola" required>
                <br>

                <label for="email" class="sr-only">E-mail</label>
                <input type="email" name="userEmail" id="email" placeholder="Infome seu e-mail" required>
                <br>
                
                <label for="password" class="sr-only">Senha</label>
                <input type="password" name="userPass" id="password" placeholder="Infome sua senha" required>
                

                <br>
                

                <input type="submit" >

            </form>

            

        </div>


    </div>

    <?php
     
        if(isset($_POST['userName']) == true && isset($_POST['userIdade']) == true && isset($_POST['userEscola']) == true && isset($_POST['userEmail']) == true && isset($_POST['userPass']) == true) {

            echo "<p> Cadastro efetuado com sucesso <p>";

            header('location: ./login.php');

        }


    ?>

    
</body>
</html>