php - add form in javascript -
hello i've got form that
<form action="xx.php"> <div id="myform"> </div> <button>add form</button> <div id="clone"> </div> </form>
and when user click on "add form", "myform" cloned "clone". know why form submitted, can reach input form "myform" , not input of cloned form (into xx.php). because cloned form created javascrpt ?
if "cloning" form, cloning 'name' attributes guess, after submitting won't work discussed in question: posting form fields same name attribute
Comments
Post a Comment