How to append multiple values to a single parameter in html form?

后端 未结 4 1154
迷失自我
迷失自我 2021-01-12 03:48

Assuming I have the following form:

Oats
4条回答
  •  借酒劲吻你
    2021-01-12 04:20

    More or less here the idea: first form, 1 hidden input will catch all the vaules of second and void form

    
    
    
    
    
    
    
    Oats Beans

    add some fix, submit the right form. Tested on jsfiddle:

    JsFiddel "working" example

    ADD SINGLE FORM VERSION

    You've to know the name of the field, and ignore the other params in the answer

    
    
    
    Oats Beans

提交回复
热议问题