zakirdavis
asked on
How to write Variables In #Trim Statement?
i want to write the following:
<CFINPUT NAME="Type" TYPE=text VALUE="#Trim(<cfoutput>#ur l.table#.T ype</cfout put>)#" SIZE="20" REQUIRED="yes" MESSAGE="Check Type Field">
I get an error:
--------------
Invalid CFML construct found on line 14 at column 55.
ColdFusion was looking at the following text:
url.table
The CFML compiler was processing:
an expression beginning with "#", on line 14, column 54.This message is usually caused by a problem in the expressions structure.
an expression beginning with "Trim", on line 14, column 49.This message is usually caused by a problem in the expressions structure.
the tag attribute "VALUE", on line 14, column 41.
a CFINPUT tag beginning on line 14, column 11.
The Error Occurred in C:\CFusionMX\wwwroot\rbuck \pages\adm in\editLan d.cfm: line 14
12 : <TR>
13 : <TD><STRONG><FONT COLOR="#FF0000" SIZE="-1">Type:</FONT></ST RONG></TD>
14 : <TD> <CFINPUT NAME="Type" TYPE=text VALUE="#Trim(#url.table#.T ype)#" SIZE="20" REQUIRED="yes" MESSAGE="Check Type Field"></TD>
15 : </TR>
16 : <TR>
----------------
Any ideas?
<CFINPUT NAME="Type" TYPE=text VALUE="#Trim(<cfoutput>#ur
I get an error:
--------------
Invalid CFML construct found on line 14 at column 55.
ColdFusion was looking at the following text:
url.table
The CFML compiler was processing:
an expression beginning with "#", on line 14, column 54.This message is usually caused by a problem in the expressions structure.
an expression beginning with "Trim", on line 14, column 49.This message is usually caused by a problem in the expressions structure.
the tag attribute "VALUE", on line 14, column 41.
a CFINPUT tag beginning on line 14, column 11.
The Error Occurred in C:\CFusionMX\wwwroot\rbuck
12 : <TR>
13 : <TD><STRONG><FONT COLOR="#FF0000" SIZE="-1">Type:</FONT></ST
14 : <TD> <CFINPUT NAME="Type" TYPE=text VALUE="#Trim(#url.table#.T
15 : </TR>
16 : <TR>
----------------
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
is url.table a structure then try this
VALUE="<cfoutput>#Trim(eva luate('#ur l.table#.T ype'))#</c foutput>"
Regards
Hart
VALUE="<cfoutput>#Trim(eva
Regards
Hart
ASKER
url.table is not a structure.
It is simply the name of my table passed through in url.
I fixed the problem by the way.
It is simply the name of my table passed through in url.
I fixed the problem by the way.
u confused me totally by writting url.table.type... :-)
anywayz good that u solved it...
Regards
Hart
anywayz good that u solved it...
Regards
Hart
u r passing something in the url what is the name of that variable...
Regards
Hart