> 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>

<cfscript>
  if (not isdefined("form.fieldnames")) {
    fnames =
listtoarray("CCType,CCNumber,CCID,CCMonth,CCYear,CCExpire");
    for (i = 1; i lte arraylen(fnames); i = i + 1) {
      form[fnames[i]] = "";
    }
  }
</cfscript>

s. isaac dealey     954.927.5117
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
http://www.fusiontap.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to