To obtain the <form> returned array, set <input>, <select>, <textarea>, and other elements as follows in the PHP script:
<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.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service