📜  html 形式的数组 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:01.559000             🧑  作者: Mango

代码示例1
You can also post multiple inputs with the same name and have them save into an array by adding empty square brackets to the input name like this:





If you use php:

print_r($_POST['comment']) 
you will get this:

Array ( [0] => 'comment1' [1] => 'comment2' [2] => 'comment3' [3] => 'comment4' )