Problem: The METHOD in forms sent to the ColdFusion server must be Post.
When you invoke a ColdFusion application page from within an HTML form, you must use METHOD="Post" rather than METHOD="Get", which is the default. The METHOD attribute is specified as part of the FORM tag. For example:
<FORM ACTION="test.cfm" METHOD="Post">
If you do not use METHOD="Post", ColdFusion cannot correctly decode the contents of your form submission.
Problem: URLs cannot have embedded spaces.
Many browsers complain when you include spaces in URLs. The correct way to do this is to use a plus sign (+) wherever you want to include a space. ColdFusion correctly translates the + sign into a space.
A common scenario in which this error occurs is when you dynamically generate your URL from database text fields that may have embedded spaces. To avoid this problem, include only numeric values in the dynamically generated portion of URLs.
Or, you can use the URLEncodedFormat function, which automatically replaces spaces with + signs. See the CFML Language Reference for information on using this function.
|