chapter31

development in a land far far away…

at the moment

History is not what happened. History is what was written down.

From ColdFusion Cookbook:

Trimming is an essential part of dealing with an data coming from form textfields or textareas etc. You can of couse trim as and when you need (before validation or database inserts etc) but if you can trim all fields quickly and easily!


    

This basically loops over a form structure and trims each element. You can use this loop in a function before handing it to your validation or database methods.

Read the full article


Related Pages

Leave a Reply