Two submit buttons in one form

前端 未结 19 2103
不思量自难忘°
不思量自难忘° 2020-11-21 23:23

I have two submit buttons in a form. How do I determine which one was hit serverside?

19条回答
  •  無奈伤痛
    2020-11-22 00:02

    I think you should be able to read the name/value in your GET array. I think that the button that wasn't clicked wont appear in that list.

提交回复
热议问题