[thelist] [CF] Tips from Lessons Learned the Hard Way
Joshua Olson
joshua at waetech.com
Wed Mar 5 20:11:01 CST 2003
<tip type="CF" author="Joshua Olson">
Mac IE will may add characters to a form element upon submittal. Use Trim()
if you are needing to compare a form value against a string literal to
account for this.
</tip>
<tip type="CF" author="Joshua Olson">
If you loop through all the form elements and trim them then you may be
breaking the file upload on the site. For example, let's say you have a
field called "newimage" that is a file type input. When you display the
variable "form.newimage" it may not appear to have any whitespace. But, if
you do <cfset form.newimage = Trim(form.newimage)> then the call to <cffile
mode="upload"> could possibly fail.
</tip>
-joshua
More information about the thelist
mailing list