Things to know about ColdFusion
GET and POST vars
Coldfusion is clearly running ontop of JAVA, to access form field vars you use #form.textbox# for POST and #url.idvar# for GET variables. But before you can use those, you need a <cfparam name=”url.idvar” default=””> otherwise it will throw a fit if the variable is not included in GET/POST request.
Cleaning User Input – Integers
To clean integers don’t use <cfparam type=”integer” name=”url.id” default=”0″> because if a user enters a letter into the field, then CF will throw a 500 error and abort the page. Instead don’t give a type and then use <cfset id=Val(url.id)> to recast it to integer.
More to come….