Hi.
Here's what I'm trying to do...
I have a table within a form. The headers are text links right now.
Header1 | Header2 | Header3
Each Header has a unique value. Since I have a lot of large hidden variables in the form, I want to submit the form rather than using an <a href="filename.php?var=$var...> as a link.
I tried doing this:
----Javascript-----
function view(header_value){
//FORM.header is a hidden variable
document.FORM.header.value = header_value;
}
----HTML-----
<a href="#" onClick='view('value'); submit();'>Header Title</a>
<a href="#" onClick='view('value2'); submit();'>Header2 Title</a>
<a href="#" onClick='view('value3'); submit();'>Header3 Title</a>
For some reason this code didn't work. If there is a way to have the same functionality in PHP or by using another type of html tag...please let me know =). Thanks