Put a CFPARAM on the action page like this:
<CFPARAM NAME="Form.Prefs" VALUE="">
and then check the length like this:
<CFIF Len(Form.Prefs)>
// Prefs is NOT empty
<CFELSE>
// Prefs is empty
</CFIF>
I would also recommend scoping the variable using "Form." as above.
Chris Lofback
Sr. Web Developer
TRX Integration
28051 US 19 N., Ste. C
Clearwater, FL 33761
www.trxi.com
> -----Original Message-----
> From: FlashGuy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 25, 2002 2:02 PM
> To: CF-Talk
> Subject: Checked variables passed from <form
>
>
> I'm passing a form variable and displaying it on my action page.
>
> <cfoutput>
> #prefs#
> </cfoutput>
>
> How can I check the above variable to see if its empty or not?
>
>
>
>
> ---------------------------------------------------
> Colonel Nathan R. Jessop
> Commanding Officer
> Marine Ground Forces
> Guatanamo Bay, Cuba
> ---------------------------------------------------
>
>
>
>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists