I am having a problem here.  How come when form.ccnum is null it is not
kicking down to my else.  Instead it just says that
The value to be encrypted is not valid.  It tries to encrypt nothing.  Why.

Joshua Tipton

<CFIF IsDefined("FORM.CCNUM")>
<CFSET string = FORM.CCNUM>
<CFSET key = form.CPHDAY>
<CFSET encryptedcc = encrypt(string, key)>

<cfquery name="" datasource="conceal" dbtype="ODBC">
query stuff
</cfquery>

<CFELSE>
<cfquery name="" datasource="conceal" dbtype="ODBC">
query stuff
</CFIF>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to