Form Does not send data

Asked

Viewed 32 times

0

Guys, give me a hand. I am testing a login screen for a personal project, when I click send the test server does not receive any data. Follow the code below.

 <div class="container col-10 col-sm-6 col-md-5 col-lg-4 col-xl-3">
        <div class="row">
            <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl12">
                <figure>
                    <img src="img/universal-logo.png" alt="Logo Igreja universal" width="60" height="52">
                </figure>
            </div>
        </div>
        <div class="row">
            <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl12">
                <h4> <i class="fa fa-lock"></i>&nbsp;Acesso ao Sistema</h4>
            </div>
        </div>
        <form method="POST" action="http://arquivo.devmedia.com.br/projeto/requisicao.php">
            <div class="row">
                <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl12">
                    <label for="inputEmail" class="sr-only">Email</label>
                    <input type="email" id="inputEmail" class="form-control" placeholder="Email" required autofocus>
                    <label for="inputPassword" class="sr-only">Senha</label>
                    <input type="password" id="inputPassword" class="form-control" placeholder="Senha" required>
                </div>
            </div>
            <div class="row">
                <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl12">
                    <button class="btn btn-md btn-primary btn-block" type="submit">Entrar</button>
                </div>
            </div>
        </form>
    </div>
  • And the code that receives the data - requisicao.php? asks the question

1 answer

0

You must add the 'name' property in the input fields, this way the data will be accessible on the other side. In the example below, I am adding the 'name' property with the 'email' value':

<input type="email" id="inputEmail" class="form-control" placeholder="Email" required autofocus name="email">

I hope I’ve helped.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.