HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 24th, 2000, 08:05 AM
selana selana is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: athens,greece
Posts: 2 selana User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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?
URL

------------------
gee......

Reply With Quote
  #2  
Old February 24th, 2000, 03:48 PM
TroutMask TroutMask is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Englewood, CO
Posts: 30 TroutMask User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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

Reply With Quote
  #3  
Old February 26th, 2000, 07:00 AM
Ramon Ramon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 1999
Location: Helden,Limburg,The Netherlands
Posts: 33 Ramon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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)

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > One form that includes multiple submit buttons problem...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway