Question
cfscript
I'm just trying to get this function to compile and get this
error message:
ColdFusion was looking at the following text: \"
Invalid CFML construct found on line...col...
This function looks okay to me based on what I've read in the documentation. I'm not sure how I should reference the form variables, though. CF might require "#form.name#" , #form.name#, or form.name and I'm not familiar with when it requires one or the other.
Is there anything wrong with what I've written?
------------------------------------------------------------------------
<cfscript>
function lcost("form2.DUP")
{var total = 0;
if ( form2.DUP ="yes")
total= form2.COPIES *(form2.ORIG/2)* paperlist.single_side;
return total;
}
</cfscript>
ColdFusion was looking at the following text: \"
Invalid CFML construct found on line...col...
This function looks okay to me based on what I've read in the documentation. I'm not sure how I should reference the form variables, though. CF might require "#form.name#" , #form.name#, or form.name and I'm not familiar with when it requires one or the other.
Is there anything wrong with what I've written?
------------------------------------------------------------------------
<cfscript>
function lcost("form2.DUP")
{var total = 0;
if ( form2.DUP ="yes")
total= form2.COPIES *(form2.ORIG/2)* paperlist.single_side;
return total;
}
</cfscript>