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 made a similar assumption about that as well, but I get an "object doesnt support this property or method" when I attempt it.
asp is more my style, so Im not sure which part of the function isnt supported.
I guess its the onclick?
Unfortunately its a local PWS development, so I dont have a URL. I can post a compiled html source if necessary?
Again, in its current form it works perfectly, but appears to need the named submit form button. I dont
My main reasoning for doing it this way, was to enable the changing of 2 or more hidden form values, depending on the link that was selected.
If I can also do this with multiple submit buttons, then Ill do it that way if necessary.
Regarding your application:
Why are you using links or buttons? If I understand you right, the user can only click on one link and you want one of four sets of values sent (t/f, f/t, t/t, f/f). Why not use radio buttons? You can assign the values as follows (without any hidden fields)