In php, the GET and POST commands are used to obtain values. However, if the value of the check box is slightly better, I will introduce it to you. Because most of the check boxes exist at the same time, the name [] must be an array...
In php, the GET and POST commands are used to obtain values. However, if the value of the check box is slightly better, I will introduce it to you.
Because most of the check boxes exist at the same time, the name [] must be an array, so you only need to get one.
The code is as follows: |
|
Html code
1 2 PHP page code for processing forms: If (! Empty ($ _ POST ['Sport ']) { Echo ('Your selection result is :'); For ($ I = 0; $ I Echo ($ _ POST ['Sport '] [$ I]. ''); } } |
Another method
The code is as follows: |
|
Direct $ A = $ _ POST ['weeks ']; // This generates an array and converts it to a character. |
We can also use one for sorting.
The code is as follows: |
|
Php processing page $ Aid = $ _ POST ['orderby']; Foreach ($ aid as $ v => $ vv) { If (is_numeric ($ vv )) { // Update the sorting. } } |
Address:
Reprinted at will, but please attach the article address :-)