Skip to content
Advertisement

Multiple $_POST on same page PHP

I have a question.

Currently this form will be dynamically generated.

Example,

JavaScript

So whenever i press submit, it will take last value of form only. How do i make it take all $_POST?

Thank you.

Advertisement

Answer

Give each input its own name or use:

JavaScript

Then PHP will treat it like an array.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement