|
Posted by jj on 08/02/05 18:21
ok thx, im going to put the unique USERID in the name value of each checkbox
this way I know which user the check box corresponds to.
"" <a@b.com> wrote in message news:F0MHe.1743$_41.631@fe02.lga...
> there are several ways to do this. i could suggest many of them but
choosing
> the best approach is contingent on more information from you. given that
> setback, you could put hidden inputs within the form...one for each
> checkbox...when a checkbox is clicked you could use javascript to set the
> correct hidden input's value to something/anything...or unset it if set.
> this would ensure that you'd always get the same number of elements
posted.
>
> the more straight-forward way is to give each checkbox a name which
> corresponds to the record which it represents. you should be able to get
the
> user from that.
>
> again, not knowing anything about your data is a detriment to your getting
> the best advice.
>
> hth,
>
> me
>
>
> "jj" <no@spam.com> wrote in message
> news:sUKHe.3572$pH4.405285@news20.bellglobal.com...
> | Hi
> |
> | I have multiple checkboxes for multiple rows on my form, my quesiton is
> how
> | do i know which checkbox that i read corresponds on which row it was
> | clicked? Here is a little drawing of my form:
> |
> | My page:
> |
> | user 1
> | checkbox 1
> | checkbox 2 X
> | checkbox 3 X
> |
> | user 2
> | checkbox 1 X
> | checkbox 2
> | checkbox3 X
> |
> | user 3
> | checkbox 1
> | checkbox 2 X
> | check box 3
> |
> |
> | now if i read the values i only get the ones that were clicked, i do not
> | know to which user the actual value corresponds to...
> |
> | Please help!
> |
> |
>
>
Navigation:
[Reply to this message]
|