if(not isDefined("form.fieldnames") {
fieldnames = "CCType,CCNumber,CCID,CCMonth,CCYear,CCExpire";
}
for(i = 1; i lte listLen(fieldnames, ","); i = i + 1) {
form[listGetAt(fieldnames, i)] = "";
}
</cfscript>
Steve
-----Original Message-----
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 2:45 PM
To: CF-Talk
Subject: Can the following be written in cfscript?
If yes, how would it look. :)
<cfif NOT isDefined("Form.Fieldnames")>
<cfset Fieldnames = "CCType,CCNumber,CCID,CCMonth,CCYear,CCExpire">
<cfloop list="#Fieldnames#" index="i">
<cfset Form[i] = "">
</cfloop>
</cfif>
Thanks Che
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

