Results 1 to 5 of 5
Oct 19, 2000, 18:41 #1
I have a small problem for you
I wish to submit a form (is going to a database) using a link. A submit button doesnt seem to work for me as I need to also pass hidden variables with the submission to enforce the 'state' of the button pressed.
Say I have 4 links.
a, b, c, d
The page has 2 hidden inputs .
1 = False
2 = True
Pressing link 'a' I want to send an input value of 1 = False, 2 = false
Pressing link 'b' I may want to send an input value of 1 = true, 2 = false etc.
I currently achieve this with :
<a href='#' onClick="
Which submits to this function:
Now this works fine, BUT I need a named 'Submit' button (SubmitName) for this to work. I dont want that submit button to show.
Another option seemed to be :
<a href='#' onClick="document.FormName.HiddenAction.value='AddNew';
It works in IE 5.5, but not others.
What other options are possible for me?
Thanks in advance