February 24th, 2000, 08:05 AM
-
hey guys,if you could help me in this one i would be grateful!
you see,there's a form with a drop down menu and i want to use two submit buttons in order to send the value of the item that i selected from the drop down menu,to two different cgi's...the problem is that the submit buttons just can't accept different addresses...
so any ideas on this one?

------------------
gee......
February 24th, 2000, 03:48 PM
-
I would use Javascript. Instead of using <INPUT TYPE="SUBMIT">, use <INPUT TYPE="BUTTON" ONCLICK="somejavascript()">
Then have each button call different functions (or the same function with different parameters) to either submit the form or navigate to the appropriate page by building a URL based upon the values of the form elements in which you are interested.
Another alternative would be to use two or more different forms with different submit buttons for each.
-TM
February 26th, 2000, 07:00 AM
-
One thing you could do is make the post-URL a variable that is manipulated by javascript, just before sending.
------------------
Ramon Litjens
Boradoli Web Design
(www.boradoli.nl)