Introduction to the implementation of php getting $_POST parameter array with the same name_PHP tutorial

WBOY
Release: 2016-07-21 15:01:36
Original
832 people have browsed it

When I was writing PHP today, I found that $_POST["arr"] could not obtain the array of parameter arr. Please record it.
For example, the following form needs to be submitted:

Copy code The code is as follows:

 
 
 
 

Using $_POST["arr"] can only Get the value of the last selected check box. To get the value of all selected check boxes, you need to modify the form as follows:
Copy the code The code is as follows:

 
 
 
 

In this way, you can use $_POST["arr"] to get the values ​​of all selected checkboxes.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327984.htmlTechArticleWhen I was writing PHP today, I found that $_POST["arr"] could not obtain the array of parameter arr, record it. For example, the following form needs to be submitted: Copy code The code is as follows: input type="checkbox" name="...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!