Multiple inputs with same name through POST in php

后端 未结 5 2208
误落风尘
误落风尘 2020-11-22 02:54

Is it possible to get multiple inputs of the same name to post and then access them from PHP? The idea is this: I have a form that allows the entry of an indefinite number

5条回答
  •  生来不讨喜
    2020-11-22 03:02

    In your html you can pass in an array for the name i.e

     
    

    This way php will receive an array of addresses.

提交回复
热议问题