October 22, 2008
Problems submitting a form via 'enter' in IE
Like many things, handling form submissions with ColdFusion can be done many many ways. A preferred method which I’ve been using for years now is looking for a specific element in the form struct. Something like:
<cfif structKeyExists(form, "myelement")> <!--- handle form submission here ---> </cfif> Most times I use a hidden field as the form element to look for (in my structKeyExists()), but I came across something funny today where I happened to be looking for the name of a submit button.
...
Read more