Skip to content
Advertisement

How to get form input fields if name is not known

I have a form which is made dynamically with jquery ajax and input fields names values comes dynamically, I want to update these fields with php I am not sure how to do this.

when form is submitted I does not know what will be the name of input fields.

JavaScript

Advertisement

Answer

You can iterate over $_POST to get all input filed values, Based on your question I have added a sample code below

JavaScript

I hope it helps you

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