2 or more submit buttons in a same form
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   nikunj_murgai
Posted On:   Tuesday, March 5, 2002 03:29 PM

sir
if i have say 2 submit type buttons ..one for submitting choice from drop down men uand the other update buton...how can i diiferently pass values so that each time i press one of he button the output is different ...i mean if i press update button then nothin is passed of choices ....

Re: 2 or more submit buttons in a same form

Posted By:   Igor_Stefanyuk  
Posted On:   Wednesday, March 6, 2002 09:25 AM

Hi,


if you have only one submit form but with two or more submit-buttons, you should make in Ur servlet checking routine which of these buttons were pressed and then decide which of fields data to read and operate with.



another solution is to make java-scripts for each button and execute them within .onClick method.


write a sample of Ur HTML code and we can see what we can do


Ciao

Re: 2 or more submit buttons in a same form

Posted By:   Bozidar_Dangubic  
Posted On:   Wednesday, March 6, 2002 07:36 AM

show the code.