我有一个表单,它传递以下值:
image_title,
image_description,
image_file
image_title_1,
image_description_1,
image_file_1
image_title_2,
image_description_2,
image_file_2
多次,所以我有1-10个字段。我提交表单并打印出POST数组的内容,唯一的问题是数组中不存在“image_title#”之后的任何“image_title#”,但其他的都存在。
所以阵列看起来像:
image_title_1 -> "title!"
image_description_1 -> "description!"
image_file_1 -> file
image_description_2 -> "description!"
image_file_2 -> file
image_description_3 -> "description!"
image_file_3 -> file
澄清:问题是“image_title#”(例如:image_title#3)不能通过,除了image_title#1,即使我重新安排了顺序。在输出之前我不做任何处理。
编辑,html源代码是: