[thelist] CF: No IsDefined()?
Joshua Olson
joshua at alphashop.net
Thu Sep 13 16:18:56 CDT 2001
Ray, I think I can field this question.
<cfparam name="form.SubmitButton" default="">
<cfif FindNoCase("*******", form.SubmitButton)>
.. whatever
</cfif>
Replace the ******* with the "value" of the submit button and you are good
to go. The added benefit is that you are now sure that the request came off
a submittal AND you know that the button clicked had the correct "value".
If you use graphical buttons, use this logic:
<cfif StructKeyExists(form, "*****.x")>
... whatever
</cfif>
Where the ***** is the "value" of the image submit.
HTH,
-joshua
----- Original Message -----
From: "Frank" <framar at interlog.com>
To: <thelist at lists.evolt.org>
Sent: Thursday, September 13, 2001 5:01 PM
Subject: [thelist] CF: No IsDefined()?
:
:
: Ray,
:
: If you prefer not to use the IsDefined() function, how do you go
: about triggering certain processes such as the following:
:
: <cfif IsDefined("Form.SubmitButton")>
:
: <cfdo="SomethingOrOther">
:
: </cfif>
:
: If you mean that you don't like to use it instead of correctly
: initializing variables to begin with, I understand.
: --
:
:
: Some are born great. Some achieve greatness.
: Both are excellent contacts to keep in your Rolodex.
: -- Bob Patterson.
:
: Frank Marion Framar Studios
: frank at framarstudios.com http://www.framarstudios.com
More information about the thelist
mailing list