Php obtains the $ _ POST parameter array with the same name. When I wrote php today, I found that $ _ POST [arr] could not obtain the arr array parameter. record it. For example, if the following form needs to be submitted: inputtypecheckboxnamearrvalueinputtype when I wrote php today, I found that $ _ POST ["arr"] could not obtain the array of the arr parameter. record it.
For example, you need to submit the following forms:
You can use $ _ POST ["arr"] to obtain only the values of the last selected check boxes. to obtain the values of all selected check boxes, modify the form to the following:
In this way, you can use $ _ POST ["arr"] to obtain all the selected checkbox values.
Parameters "arr"] the array of the arr parameter cannot be obtained. record it. For example, you need to submit the following form: input type = "checkbox" name = "arr" value = ""/input type...