I am facing an issue with adding dynamic form fields to the database using PHP. I have utilized angular for this purpose, but only the last form field is getting inserted into the database. To address this, I attempted using arrays and loops to increment and update the form fields in the database. However, the query seems to be malfunctioning as the data is not being inserted properly. Can anyone identify what is causing the problem here? I would appreciate any assistance. Thank you in advance.
Below is the code snippet:
<form method="post">
<div class="form-group " >
<input type="text" placeholder="Campaign Name" class="form-control c-square c-theme input-lg" name="camp_name"> </div>
... (code continues)