U
U
unlik2018-03-13 17:34:15
JavaScript
unlik, 2018-03-13 17:34:15

How can I find out which button was clicked to submit the form?

The site has 4 buttons. Clicking on them opens the same form.
How to indicate in a letter by clicking on which button a pop-up window was opened and the form was sent?
The option to make different shapes for each button is not suitable.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrew, 2018-03-13
@unlik

When clicking, write to a secret (hidden) field?

M
Maxim Timofeev, 2018-03-13
@webinar

hidden input write to it which button was pressed

S
Stalker_RED, 2018-03-13
@Stalker_RED

This is the basic functionality of html forms.
Without registration, without SMS, and scripts.
You can test here: https://jsfiddle.net/z8555bpw/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question