Problems
How can I dynamically find what form fields have been posted into a page?
ColdFusion provides two easy ways to obtain a list of all form variables that have been posted to a ...
How can I make a form submit to itself without hardcoding the file name?
The ColdFusion CGI variable CGI.SCRIPT_NAME contains the name of page being executed, so you can use...
How can I pass alt tag (or other attributes) to the cfinput tag?
The cfinput tag allows you to pass any attribute. If the attribute is not one of the attributes spec...
How can I validate a password to make sure it contains numbers and letters and is at least X characters long?
Regular expression combined with the <cfif> and reFind() function give you the flexibility to ...
How can I work with remote HTML forms?
The nature of working with HTML form submission (or handler) pages is such that by default they do n...
How do I mail the contents of a form?
One of the most common things a web site may require is a simple "Contact Us" or other form. Normall...
How do I trim the contents of a form?
This piece of code will trim the contents of a form. Since the form scope always exists in ColdFusio...
How do I upload a file to my ColdFusion application by way of a form?
Using a HTML form to upload files is a 2-step process. The first step involves the use of a HTML for...
How do you stop users from clicking the submit button more than once?
If there is a form submission that may take a while, many users will click the submit button multipl...