When to Use Input Button and Submit

Asked

Viewed 26 times

0

I am developing a login system, but I have two alternatives, use the type button or type Submit, which one to use?

<div class="layout_login">
    <label for="sizeEmail" id="positionEmail">Email</label>
    <div class="e_mail">
        </br><input class="sizeEmail" type="email" name="e-mail_login">
    </div>
    <label for"sizeSenha" id="positionSenha">Senha</label>
    <div class="senha">
        </br><input class="sizeSenha" type="password" name="senha_login">
    </div>
    <label>Enviar</label>
    <div>
        <input type="submit" << AQUI
    </div>
  • 2

    The difference is that the guy Submit submits the information in a form to a server, and the type button can be used as a normal button like opening a modal for example.

  • The type Submit is being used more as button.

No answers

Browser other questions tagged

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