In one of my CF pages I need to create a form field using two seperate query results as the name. There are multiple sets of the fields and the name consists of the company code and the employee number.
We have two seperate divisions with seperate company codes and duplication of employee numbers, hence the complicated name creation scheme - here is the code:
<input type="radio" name="#companycode##employeenumber#" value="1">Approved
<input type="radio" name="#companycode##employeenumber#" value="2">Denied
<input type="radio" value="0" checked name="#companycode##employeenumber#">No Change
This is part of a form that calls the next CF page where we need to process each of the sets of radio buttons.
The problem that I am experiences is that while I can recreate the name, for example a company code of 10 and an employee number of 1404 becomes '101404'. I simply cannot access the data stored within the form variable.
I've been trying things such as:
#form.#companycode##employeenumber##
This is in an effort to recreate the form field name of #form.101404# which would have a value of 0,1 or 2.
Unfortunately all I ever seem to end up with is setting the field in the DB to "form.101404" not the value of the field, but the actual text as shown.
I know how to create these types of dynamic names and access them in CGI/PERL, but so far it is eluding me in Cold Fusion.
Any suggestions are appreciated.
We have two seperate divisions with seperate company codes and duplication of employee numbers, hence the complicated name creation scheme - here is the code:
<input type="radio" name="#companycode##employeenumber#" value="1">Approved
<input type="radio" name="#companycode##employeenumber#" value="2">Denied
<input type="radio" value="0" checked name="#companycode##employeenumber#">No Change
This is part of a form that calls the next CF page where we need to process each of the sets of radio buttons.
The problem that I am experiences is that while I can recreate the name, for example a company code of 10 and an employee number of 1404 becomes '101404'. I simply cannot access the data stored within the form variable.
I've been trying things such as:
#form.#companycode##employeenumber##
This is in an effort to recreate the form field name of #form.101404# which would have a value of 0,1 or 2.
Unfortunately all I ever seem to end up with is setting the field in the DB to "form.101404" not the value of the field, but the actual text as shown.
I know how to create these types of dynamic names and access them in CGI/PERL, but so far it is eluding me in Cold Fusion.
Any suggestions are appreciated.