Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: eightcharacters
So are you having the user select the items (A-Z) that they want to display and then showing the corresponding value from the database?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: NettlesD
Maybe this is clearer.
CREATE TABLE test
(
tag_name VARCHAR2(20 BYTE)
)
insert into test
(tag_name)
values
('bottle')
Web Page 1
<cfloop query="test">
<input type="radio" name=" #tag_name#" value="No" />
<input type="radio" name=" #tag_name#" value="Yes" />
</cfloop>
The input tag will read:
<input type="radio" name=" bottle" value="No" />
<input type="radio" name=" bottle" value="Yes" />
<input type="submit" name="Submit" value="Submit" />
Web Page 2
We know that a parameter of "Bottle" and "Submit" was submitted to this form. Since the table has the name of the tag_name stored in the table, how can I loop through the table and retrieve the value that "Bottle" was passed with.
<cfloop query="test">
<cfif IsDefined(" form."& tag_name)> (should read form.bottle)
What is the value of "bottle" that was passed in?
should be either No or Yes
</cfif>
</cfloop>
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more