I have a form that I generate new input fields to with javascript and the generated fields won’t post.
I have made a demo which I stripped the database etc. because it might not have been secure (for injections) which var_dumps POST
http://resk.latvalashop.com/test.php
Try to fill in everything and press a couple times the “+” button to add a couple of rows, fill them and then press “Tallenna” which will POST the form.
the problem is the floating element to right of the main element, the first fields are not generated by javascript and POST as they should, but if you press the “+” and try to post from the newly created forms nothing will be POSTed.
Any help appriciated!
The generated input elemnts are not contained inside of an
<form>element, so they are not able to be posted. You should push your<form action="result.php" ... >higher up in the DOM hierarchy.