Seona, Yes... Of course it doesn't work. *sigh* Perhaps next time I'll use both brain cells.
Better luck next time! Nat. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Seona Bellamy Sent: Tuesday, 4 February 2003 2:16 PM To: CFAussie Mailing List Subject: [cfaussie] RE: Fun with dynamically named variables Hi Nathan, > Just two things: > (1) Are you definitely passing ClassName as a URL parameter in the action > attribute of the form? You are accessing it as a URL parameter, > not a form > parameter - just check that the variable is coming across. I have all the debug stuff turned on, and yes, the parameter is being sent across correctly as a URL parameter. That never seemed to be the issue, since it was still able to return the correct data in q_ClassSkill. > (2) Within your CFQUERY loop, I would modify it like this: > > <!--- Set SkillType ---> > <cfset variables.SkillTypeTemp = "#q_ClassSkill.SkillName#"> > > <cfif "FORM.#variables.SkillTypeTemp#" IS "Yes"> > <cfset variables.SkillType = "Yes"> > OK, tried that and I'm not getting any errors. The problem I'm finding is that it seems to be equating the string to the value, rather than the formfield contents to the value. If I try without the "" around the FORM.etc, I get the following error: Error Diagnostic Information Just in time compilation error Invalid parser construct found on line 19 at position 13. ColdFusion was looking at the following text: . Invalid expression format. The usual cause is an error in the expression structure. The last successfully parsed CFML construct was a CFIF tag occupying document position (19:3) to (19:7). The specific sequence of files included or processed is: C:\Inetpub\wwwroot\AndrewDnD\gm_ClassSkills.cfm It really seems to hate having the dynamic bit in the middle of the variable reference. Is there a way around this? Or should I simply abandon this method and go about the whole thing another way? Any suggestions anyone? Thanks, Seona. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
