0
In a locker I have this link:
<a href="chk-gerente.php?nro_pergunta=<?php echo $nro_pergunta; ?>">Próximo</a>
And that button:
<button type="submit" class="btn btn-default" >REPONDER</button>
Doubt: This is a system of questions, which list the question. The next link brings the new question and the answer makes the GET method by making the Insert in the bank. Is it possible to pass the next link inside the button by doing one thing? type,when I click answer he would do the Insert and soon after would bring the next question ? Something like this:
<button a href="chk-gerente.php?nro_pergunta=<?php echo $nro_pergunta; ?>"
type="submit" class="btn btn-default" >REPONDER</button>
I’ve tried that way and it didn’t work.
when you have a button, embed it in a form: <form action=YOUR_URL method=get> <input type=Hidden name=nro_pergunta value=<? php echo $nro_pergunta; ? > <button...> </form> see also: http://stackoverflow.com/questions/14461658/are-button-html-tags-outside-of-a-form-valid
– user39755
Perfect, all right , Thank you.
– Chefe Druida