Answers

Question and Answer:

  Home  Junior PHP Developer

⟩ Tell us how to create an array of a group of items inside an HTML form?

We can create input fields with same name for "name" attribute with squire bracket at the end of the name of the name attribute, It passes data as an array to PHP.

☛ For instance:

<input name="MyArray[]" />

<input name="MyArray[]" />

<input name="MyArray[]" />

<input name="MyArray[]" />

 157 views

More Questions for you: