multiple buttons on a form

前端 未结 6 783
遥遥无期
遥遥无期 2020-12-06 02:28

I have a clear button that I want to tie into some php coding. how do I detect if the clear button is pressed. When the user press clear, i\'m going to have it update a sql

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-06 02:48

    Either wire up the item as a button you attach to a Javascript snippet that fires off an AJAX request, or use a submit input. (Determine whether the form was submitted or reset based upon the submit value)

提交回复
热议问题