How do I create an <form> array in HTML? _ PHP Tutorial

Source: Internet
Author: User
Tags element groups
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...

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.