How do I create an <form> array in HTML ?. To obtain the <form> returned array, set <input>, <select>, <textarea>, and other elements as follows in the PHP script: <inputnameMyArray []> <inputnameMy: to obtain the <form> returned array, set <input>, <select>, or <textarea> in the PHP script as follows:
<Input name = "MyArray []">
<Input name = "MyArray []">
<Input name = "MyArray []">
<Input name = "MyArray []">
Note that the brackets following the variable name are used to generate an array. You can also set different array element groups in the same name, as shown below:
<Input name = "MyArray []">
<Input name = "MyArray []">
<Input name = "MyOtherArray []">
<Input name = "MyOtherArray []">
After receiving this page, PHP creates two arrays, MyArray and mytherarray. Note that you do not need to set an array index in HTML! The array is filled in the table in sequence. You can use the array function library to process these arrays.
When <form> is returned as an array, you only need to set <input>, <select>, or <textarea> and other elements in the PHP script as follows: <input name = "MyArray []"> <input name = "My...