The entire output of the page is behind a conditional statement, right?

If the condition were false, you'd get the blank page. So, what's the 
real condition you want?

<CFOUTPUT>#FORM.project#</CFOUTPUT>
If this throws a "not defined" error, then IsDefined() should return a false.

Here, you're asking for a true if the variable does NOT exist.

<CFIF IsDefined("FORM.project") IS "no">

(Side question:) since IsDefined() actually returns a boolean, wouldn't 
your logic look better with:

<CFIF NOT IsDefined("FORM.project")>

However, later on you rely on the same variable (the one you just proved does 
not exist) to control your CASE statements:

<CFSWITCH EXPRESSION="#FORM.project#">

I don't quite get that part...
 
Al



J.B. Mentzer wrote:
> Hi,
>
> This tag resides within "index.cfm" in /prototype:
>  
> <FORM ACTION="/zekedev_sites/prototype/index_action.cfm" METHOD="post">
>
>
> When submitted goes to the success page, but the browser only displays a 
> blank page.
>
> This is the code within index_action.cfm:
>
> <CFIF IsDefined("FORM.project") IS "no">
>
>     <CFSWITCH EXPRESSION="#FORM.project#">
>     Text ...
>         <CFCASE VALUE="uprrlib">
>             <CFLOCATION URL="uprrlib_index.cfm">
>         </CFCASE>
>
>         <CFCASE VALUE="UP800_gallery">
>             <CFLOCATION URL="UP800_gallery_index.cfm">
>         </CFCASE>
>        
>     </CFSWITCH>
>
> </CFIF>
>
> Does OBD handle form variables differently than CF 5 running under IIS?
>
> Thank you,
>
>  * JB *
>
>
> >
>   

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---

Reply via email to