Assuming you want to send all data in the same Ubmit and that you use jQuery
, I will propose the following solution:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<form id="form-1">
//seus campos aqui
</form>
<form id="form-2">
//seus campos aqui
</form>
<form id="form-3">
//seus campos aqui
</form>
<input type="submit" id="submit-forms"/>
<script>
$(function(){
$('#submit-forms').click(function(){
window.location.href = "urldesubmit.com.br?" + $('#form-1').serialize() + '&' + $('#form-2').serialize() + '&' + $('#form-3').serialize();
});
});
<script>
It’s a hell of a gambit, but it should work.
There are several formats that will send the data to the same place?
– Laerte
You can only give ONE Ubmit, if what you want is to send the data of these 3 Forms in the same Ubmit, then you need to better formulate your question, starting by posting the 3 Forms here so that it is possible to formulate the ideal answer.
– Kenny Rafael
Definitely you do not need to assemble three separate forms, if you use a little Javascript just recover the fields and get the respective values from them, then just send javascript to the server. Provide some of your code.
– leandroungari