Two submit buttons in one form

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

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

19条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 00:06

    The best way to deal with multiple submit button is using switch case in server script

    Choose your favorite subject:

    server code/server script - where you are submitting the form:

    demo_form.php

    
    

    Source: W3Schools.com

提交回复
热议问题