[Javascript] one form, two submit ways

Michael Borchers borchers at tridem.de
Thu Feb 17 05:32:31 CST 2005


<form action="script.php" name="form>
...
some inputs
...

<select name="subaction">
option book
option print

submit ???

</form>


the subaction later decides what to do with the data.

now i would like to leave out the select for subaction
and offer two submit buttons with "book" and "print"
but with the same effect.

can this be done?





More information about the Javascript mailing list