I have a table with 100 records. Each record contains a checkbox field with the unique ID of the record. I also have a hidden field of that form which contains all my ID. So, MessageMark contains Message2323,Message6454,Message3524,Message0090,...
The user may check several records. At the javascript level, before submitting the form, I need to know which checkboxes have been checked and store them into MessageMarkFinal.
Normally, I will do that code in Visual FoxPro. This time I have to do it before submitting the form. What would be the fastest way to scan the MessageMark variables to retrieve the checked variables into MessageMarkFinal?
The table is like this:
INPUT TYPE=Checkbox NAME=Message2323
INPUT TYPE=Checkbox NAME=Message6454
INPUT TYPE=Checkbox NAME=Message3524
INPUT TYPE=Checkbox NAME=Message0090
The hidden field is like this:
INPUT TYPE=Hidden NAME=MessageMark VALUE=Message2323,Message6454,Message3524,Message0090,...
Assuming record 2 and 4 are checked, I should have this in MessageMarkFinal:
INPUT TYPE=Hidden NAME=MessageMarkFinal VALUE=Message6454,Message0090