Hi guys, I m invoking a servlet thro HTML submit button that outputs the detailed Reg form.It has three "submit" buttons in the end.Each has different action.I wish to place them in the same row of the table.How do I achieve this? As far as I know there can be only one action.Shall I take three diff tables(1 row 1 column) having three forms resp. each having diff action.Right now they are placed one below the other. Three common buttons are "submit" "back" and "cancel".
Hi vaibhav, Just place the simple buttons instead of the submit buttons. Just call a function on onClick event of the button and pass the parameter 1,2 or 3 as action so that you can know which button is got pressed. In the common function you can check which button got pressed and depending on that you can change the action and submit the form i.e document.[formname].action="URL"; document.[formname].submit(); hope this will solve your problem. bye.
Joined: Jan 20, 2001