0
Can someone help me? I have a small problem in a registration code that I am studying, I want to make the connection with him in the database, however I am not able to receive the data via POST.
Follow the code and the error:
<div class="card-body ">
<form class="form-group" id="formInscrevase" method="post" action="registro_ml.php">
<div class="input-group">
<span class="input-group-addon">
<i class="now-ui-icons users_circle-08"></i>
</span>
<input type="text" class="form-control" id="usuario" name="usuario" placeholder="Usuário" required="requiored">
</div>
<div class="input-group">
<span class="input-group-addon">
<i class="now-ui-icons text_caps-small"></i>
</span>
<input type="email" class="form-control" id="email" name="email" placeholder="Email" required="requiored">
</div>
<div class="input-group">
<span class="input-group-addon">
<i class="now-ui-icons ui-1_email-85"></i>
</span>
<input type="password" class="form-control" id="senha" name="senha" placeholder="Senha" required="requiored">
</div>
<div class="form-check text-left">
<label class="form-check-label">
<input class="form-check-input" type="checkbox">
<span class="form-check-sign"></span>
Eu concordo
<a href="#something">com os termos e condições</a>.
</label>
</div>
</form>
</div>
<div class="card-footer ">
<a href="registro_ml.php" class="btn btn-primary btn-round btn-lg">Get Started</a>
</div>
If you can post the code, so if the links go out your question may help someone else
– Wictor Chaves
The problem is because you created the button as a link that sends to the other page, you must create a Ubmit button and it should be inside the tag "form"
– Wictor Chaves
Once you post your code in the question, I create an answer with the change in code for you.
– Wictor Chaves
Take a tour around https://answall.com/tour
– Andrei Coelho
Done, edited and put the code!
– Nathan Lopes