
rGeoffrey
User
Feb 22, 2001, 10:24 PM
Post #2 of 2
(4440 views)
|
Re: How to execute multiple cgi's from one html form
[In reply to]
|
Can't Post
|
|
1) Here is a javascript trick that will get you multiple actions for the same form...
<form method="POST" action="display.cgi" name="memberform"> <input type="submit" name="editmembers" value="Edit" onclick="forms.memberform.action = 'edit.cgi';"> <input type="submit" name="editmembers" value="Blast" onclick="forms.memberform.action = 'blast.cgi';"> If you do this you might want to make sure the default action (display.cgi in this example) can figure out what to do if the user has javascript turned off and all buttons do the default action. --- Sun Sep 9, 2001 - 1:46:40 GMT, a very special second in the epoch. How will you celebrate?
|