Well let me be a little bit more descriptive. I have an "index.cfm" page that includes two files. I was then setting the REQUEST variable *in* the first include. In the second include I would then look for it. This did not work.
I now set the REQUEST variable in the "index.cfm" file first. Then set it in the first include and read it in the second include. This works. So I gather from this experience that request is *inherited* from the parent document. Application.cfm ----- index.cfm ---------- include.cfm It only gets inherited. there is no creating it in a child include/file. Ian On Wed, 03 Nov 2004 13:05:25 -0500, Ben Doom <[EMAIL PROTECTED]> wrote: > It sounds like it wasn't always being set in the first include. > > Regardless of what file a request variable is set in, it is available to > all subsequent code. I may be off a bit with regard to CFCs, but that's > how I understand it. > > --Ben > > > > Ian Sheridan wrote: > > well that's the thing I am setting it in include not the index.cfm file. > > > > so I created it in the index.cfm file NOT the included file and it now works. > > > > Ian > > > >>Sure, as long as you set it before you call it of course > >> > >>-----Original Message----- > >> > >>can you set a request scope variable in an include? > >> > >>ex. > >>-----index.cfm > >>----------include1.cfm --> set request.test > >>----------include2.cfm --> read request.test > >> > >>can this be done? > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=38 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183289 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

