Consider a scenario where you are designing a survey form where questions can be dynamically added by the admin. How would you design the form fields to ensure all data is captured correctly in PHP?

  • Use an array of form fields
  • Use session variables
  • Use cookies
  • Use hidden fields
To ensure that all dynamically added questions are captured correctly in PHP, it's advisable to use an array of form fields. Each dynamically added question can have its own field within the array.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *