Is it valid to have two input elements with the same name?

前端 未结 6 1130
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 11:40

i.e.:

and

6条回答
  •  春和景丽
    2020-12-13 12:30

    Yes, it is valid

    This is Good

    
      
    
    
    

    This is also fine and will generally be interpreted as an array of values, e.g. {url: [1, 2]}, depending on what your server does. In a URL encoding, it will look like url=1&url=2.

提交回复
热议问题