multiple submit buttons

Larry Aronson (laronson@acm.org)
Fri, 11 Nov 1994 14:43:54 -0500


Message-Id: <v01510102aae9783ba14a@[198.7.7.144]>
Date: Fri, 11 Nov 1994 14:43:54 -0500
To: www-html@www0.cern.ch
From: laronson@acm.org (Larry Aronson)
Subject: multiple submit buttons

>I would also like to be able to have multiple submit buttons.  This is
>so that the user can select who to submit the form to!!
>
>Is there a way to do this?

It seems unlikely. The submit button does not send any value, it just kicks
off the action specified as the value of the ACTION attribute in the form
tag. Having multiple submit buttons would imply multiple ACTION attributes
with some way of mapping which button goes with which action.

Why not provide radio buttons or a select list for the reader to choose the
destination. That information would be read by your cgi script to post the
forms contents where you want it to go. Unfortunately, this would not work
if the ACTION attribute contained a "mailto" URL.

Larry

 ----------------------------------------------------------
| Larry Aronson         |  35 W. 20 St. |     212-807-8561 |
| Systems Psychoanalyst |   NYC 10011   | laronson@ACM.org |
 ----------------------------------------------------------
         http://info.acm.org/~laronson/homepage.html