#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    athens,greece
    Posts
    2
    Rep Power
    0
    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......
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2000
    Location
    Englewood, CO
    Posts
    30
    Rep Power
    15
    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
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    Helden,Limburg,The Netherlands
    Posts
    33
    Rep Power
    15
    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)

Similar Threads

  1. 2 submit buttons in one form
    By Scatt-Neko in forum HTML Programming
    Replies: 4
    Last Post: February 25th, 2004, 02:58 PM
  2. Replies: 0
    Last Post: October 22nd, 2003, 01:21 AM
  3. multiple submit buttons
    By phprock in forum PHP Development
    Replies: 7
    Last Post: September 5th, 2003, 04:40 PM
  4. How to use multiple submit buttons?
    By Namaseit in forum PHP Development
    Replies: 11
    Last Post: July 7th, 2003, 11:38 AM
  5. Submit form with multiple fields
    By tivoli in forum HTML Programming
    Replies: 0
    Last Post: September 1st, 2000, 11:34 AM

IMN logo majestic logo threadwatch logo seochat tools logo