Try:
<cfparam name="form.c1" default="">
<CFIF form.C1 EQ "update">
or:
<cfif isDefined('FORM.c1')>
<cfif FORM.c1 eq 'update'>
----- Original Message -----
From: Robert Orlini
To: CF-Talk
Sent: Tuesday, May 04, 2004 3:23 PM
Subject: Form button
I have an image as a form button as:
<input type="image" src="" name="C1" value="update">
In my CF code pressing this button should execute an update, however the following code generates an error:
<CFIF IsDefined("form.C1.X") and form.C1 EQ "update">
Cold Fusion Server logged the following error information:
An error occurred while evaluating the _expression_:
IsDefined("form.C1.X") and form.C1 EQ "update"
Error near line 1, column 29.
Error resolving parameter FORM.C1
The specified form field cannot be found.
Am I missing something here?
Thanks.
Robert O.
HWW
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

