Reputation: 5554
I need to make an application which dynamically generates some number of forms and processes them. The user should be able to deal with each form individually without resetting the entered values in the other forms.
What I have right now is a master form that uses JS to generate some number of forms. The forms are all the same (i.e. I iterate on include("myForm.php").
My problem is that every time I submit one form, the values in the other forms get reset. How do I fix this?
Upvotes: 1
Views: 459
Reputation: 28906
This is a three-step process:
Upvotes: 1
Reputation: 2290
Post the form with AJAX, this doesn't refresh the page so you won't lose the values entered in the other forms
Upvotes: 1