-
Is it possible?
In a form i have two buttons. One is back and another one is next. I declare both of this "type=submit". But i need if i click "back" then it goes to previous page and if click "next" it goes to next page. Is it possible to acheice this using two submit buttons in a single form?
---------------------
suresh
-
Re: Is it possible?
I think it is possible.:confused:
If you put 2 submit buttons, their will be only one function that is called when you click on either of them. Then, internally in the function, you will have to identify which submit button is clicked and separate the execution logic. You will have to work with some property of the button (may be ‘caption’) that is unique between the 2 submit buttons.:D
-
Re: Is it possible?
Hi sutnarcha,
I know if i call the javascript function in the submit onclick event then we can acheive the result. But my question is without using any javascript function can i acheive the result ?
-------------------
suresh
-
Re: Is it possible?
Its possible if you can store the click event values in hidden field. for eg.. if u click on next and it fetches a result and you ll ve to get the unique value in dat event and store it in hidden field and den if u click on previous button jus use dat hidden field value to get to the previous point.
-
Re: Is it possible?
Off course, It is possible through java script.