php - After using submit button how do we remain on the same page with different form on the same page ? -


i want build form builder in whole html coming database according form id.

what want ask when click on submit button how form id increase new form on same page. how can ?

<html> <head> <script>  $.ajax({                     type: "post",                     url: path ,                     data: {id:$('#id').val()+1},                     success: function(res) {                         $('#varible_html').html("");                             $('#varible_html').html(res);    // res contain html want set on page                     },                     error:function (res)                     {                         alert(res);                       }                 });       </script> </head> <body> <form id="test" name="test"> <input type="hidden" id="id" value = "<?=$id?>"> <div id="varible_html"> </div> <input type="button" onclick="sub()" id="btn"> </form> </body> </html>   

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -