Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid CFML construct found

Status
Not open for further replies.

hevychevy1996

Programmer
Jan 7, 2005
24
US
I recently posted that I was trying to submit an online job application to my human resources by email. I used cfmail,copy and pasted the required fields in between the tags,and changed the fields within the cfmail tags using this syntax: "value=#form.formfield"
When i test it out it gives me this error: Invalid CFML construct found
Any ideas?
 
Don't you mean:
Code:
value=#form.formfield[red]#[/red]



Hope This Helps!

Ecobb
Beer Consumption Analyst

"My work is a game, a very serious game." - M.C. Escher
 
The syntax on the livedocs has quotes around the values:

value="#form.formfield#"


My guess would be with out the quotes coldfusion is messing up on the subject since it might have spaces and with out the quotes it thinks the second word if an attribute.

Kris Brixon
 
the "value = " he is refering to is html which doesn't require quotes.

invalid construct occures when you forget to close a series like ecobb mentioned

#myValue no pound
myFunction(myValue no closing pren
<cfset myname = "Travis> no quote
<cfoutput>#myArray[1#</cfoutput> no closing bracket

stuff like that usualy results in an invalid construct error. the invalid part is the first character that shows up after the expected chacter

<cfset myVar = myFunction(myVal>
invalid construct, coldfusion was looking a the following character ">"

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
-Douglas Adams (1952-2001)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top