0
have a form and need that when clicking the button, I send parameters of what was entered in the input fields within the function url of onclick:
<form action="whatsapp.php" id="send-whatsapp" target="_blank" method="get">
<input name="login" type="hidden" value="logindousuario">
<input name="numero" type="hidden" value="numero">
<input type="text" name="nome" placeholder="Nome">
<input type="text" name="telefone" class="telephoneMask" placeholder="(00) 0000-0000">
<input type="submit" value="" class="enviar" onclick="return gtag_report_conversion('https://site.com.br/whatsapp.php?login=valordoinput&numero=valordoinput&nome=valordoinput&telefone=valordoinput')">
</form>
Can you help me?
Thank you!
Does it have to be in onclick? You can take input values by placing a class or id. If you can, there is an answer that can help you at this link: https://answall.com/questions/21860/como-peg-input-usando-html-e-javascript
– Sabão