<INPUTclass = "checkbox" type = "checkbox" name = "ids []" value = "$
Source: Internet
Author: User
& Lt; INPUTclass = & quot; checkbox & quot; type = & quot; checkbox & quot; name = & quot; ids [] & quot; value = & quot; $ audio [id] & quot; & gt; name = & quot; ids [] & quot
What is the use of this name = "ids?
------ Solution --------------------
Ids [] = 1;
Ids [] = 2;
Uploading to php is an array
$ _ POST [ids] = array (1, 2 );
------ Solution --------------------
Name = "ids []", here is the check box checkbox,
The user id can be stored here. For some batch operations, you need to obtain the user id, such as batch deletion and user review.
On the php page $ _ POST ['ids'], you can obtain the ids of multiple users for corresponding services.
LZ can explain the problem in detail.
------ Solution --------------------
$ Ids = $ _ POST ['id'];
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.