what I do it use <cfparams on the processing page..
one for each form field. Set a default to "" if need be, and then if
further checking is needed use <cfif> statements..
Here's an example..

<cfparam name="form.accessorysales" default="0" type="numeric"/>
<cfparam name="form.additionalcomments" default="" type="string" />
<cfparam name="form.bsrleadinfo_id" default="0" type="numeric"/>
<cfparam name="form.bsr_posnbr" default="" type="string" />
<cfparam name="form.businessSolutionsIntroduce" default="" type="string" />

Then I can check based off of the default values..
<cfif form.accessorysales neq 0>
   ...
<cfelse>
....
</cfif>
Make sense?





On 6/24/05, Torrent Girl <[EMAIL PROTECTED]> wrote:
> Here is my orginal post:
> 
> (I can send you the code offline)
> 
> 
> Hello all.
> 
> I am creating a form with a lot of fields. Some are required and some are 
> not. The ones that are not
> 
> A fellow developer was trying to explain to me a way to set a form fields to 
> "" so they won't cause an error, but no one GIVE SYNTAX EXAMPLES!! (sorry had 
> to scream)
> 
> Can you guys/gals help me?
> 
> Here is what I have (which doesn't seem to work)
> 
> 
> <cfif '#lengthOfEmploy#' EQ "">
>   <cfset '#lengthOfEmploy#' EQ "NA">
> </cfif>
> 
> Thanks
> TGirl
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1207
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to