Tricky HTML question about 2 buttons... Please help...?

Willbor

New member
Hello. I have 2 buttons inside <table>. It looks something like:

<form...><table...>...OKButton... ...CancelButton...</table></form>

But, actually I need something like
<form...><table...>...OKButton...</table></form>
<form...>...CancelButton...</form>....
That's because OKButton and CancelButton should lead to two different pages.

But, the problem is that both buttons should be inside one <table> to be displayed on html page properly. That means, that two buttons will stay within one <form></form> as well because <table> is inside <form>.
How to solve that question?
Thank you.
 
it's so easy I don't see what the problem is. you just gave the answer. so what's the question exactly?
< form >
< table >
< tr >
< td >
< input type="button" value="OK" onclick="location.href='ok.html'" >
< input type="button" value="CANCEL" onclick="location.href='cancel.html'" >
< /td >
< /tr >
< table >
< /form >
 
Back
Top