<form method="post" id="formulario_contato" onsubmit="validaForm(); return false; " class="form" action="?go=enviar">
<table id="login_table">
<div id="all">
<div id="login-box">
<p class="nome">
<input type="text" name="nome" id="nome" class="form-control" placeholder="Nome do paciente" />
</p>
<p class="idade">
<input type="text" name="idade" id="idade" class="form-control" placeholder="Idade do paciente" />
</p>
<p class="cpf">
<input type="text" name="cpf" id="cpf" class="form-control" placeholder="CPF do paciente" />
</p>
<!-- Botao Enviar -->
<p>
<center><input type="submit" value="Enviar" class="btn btn-info" href="sala_medico.php"/></center>
</p>
</div>
</div>
</table>
</form>
</div>
</div>
</div>
</div>
</body>
</html>
<?php
if(@$_GET['go']=='enviar'){
}
I am registering people who can choose to answer a questionnaire or not. This way, I need two "register" buttons for this same form, one for each action. If it is impossible to do this, any other solution is welcome.