Last active
February 19, 2022 12:55
-
-
Save lucianobragaweb/7255519 to your computer and use it in GitHub Desktop.
Enviar Formulário através de um link, tag <a>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Script que executa a ação de enviar o formulário --> | |
<script> | |
function enviar_formulario(){ | |
document.formulario.submit(); | |
} | |
</script> | |
<!-- O Formulário --> | |
<form action="pagina.php" method="post" name="formulario"> | |
<input type="text" name="nome"/> | |
<input type="text" name="email"/> | |
</form> | |
<!-- O Link pode estar fora do formulário ou dentro, funciona da mesma forma --> | |
<a href="javascript:enviar_formulario()">Clique aqui para enviar!!</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you use in my website portalonplace.com