[thelist] CF: Thanks for the technique
Frank
framar at interlog.com
Thu Nov 8 20:40:39 CST 2001
A couple of months ago, Josh suggested that instead of using
<cfif IsDefined("Form.Submit")>
... do stuff
</cfif>
That I first define the parameter then search for it's value as such:
<cfparam name="Form.Submit" default="">
<cfif FindNoCase("Upload", Form.Submit, 1)>
... do stuff
</cfif>
While modifying a image uploading tag, and making a duplicate for
similar functions (non-image files, different treatment), I've
discovered what a blessing it was. I've now got two very similar
files that can easily and quickly make a clear distinction as to
which is being addressed.
Thanks Josh!
--
Our best destiny, as planetary cohabitants, is the development
of what has been called "species consciousness" - something over
and above nationalisms, blocs, religions, ethnicities.
Frank Marion Framar Studios
frank at framarstudios.com http://www.framarstudios.com
More information about the thelist
mailing list