I am working in ColdFusion. Here is the issue I am having. I have a form with a number of fields in it, including checkboxes. The checkboxes follow a standard naming convention, for instance every check box is named “chk” then the name. So EMT would be named chkEMT, and so on. I am looping through the form.fieldnames and I need to get all the form fields beginning with “chk”, then remove the “chk” from the fieldname and return just the remainder of the name, such as “EMT”. So “chkEMT” is parsed and returned as “EMT” the rest of the fieldnames can be skipped.
Share
1 Answer