Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q434 How do I tell which button submitted a form?

You are here: irt.org | FAQ | JavaScript | Form | 7.2 | Q434 [ previous next ]

Give the buttons names and different values:

<FORM>
<INPUT TYPE="SUBMIT" NAME="button" VALUE="1">
<INPUT TYPE="SUBMIT" NAME="button" VALUE="2">
<INPUT TYPE="SUBMIT" NAME="button" VALUE="3">
</FORM>

In the url you'll have either ?button=1 or ?button=2 or ?button=3

Feedback on 'Q434 How do I tell which button submitted a form?'

©2018 Martin Webb