Michael... To be honest, your code makes no sense at all... try this:
http://www.test.com?myurlvar=testing <cfsavecontent variable="testing"> <cfset myvar = url.myUrlVar> </cfsavecontent> <cfoutput>#testing#</cfoutput> First off, you only have a string inside the savecontent... which means that you're not going to execute the code. CFSAVECONTENT actually executes the code inside it and puts the output buffer into the variable named in the variable attribute. Also, I've got no idea where _root. comes from, but you have no connection to the URL scope in the code example. You can only use the var keyword inside a CFFUNCTION tag, and if that's the case you should be passing the URL scope (or any struct for that matter) into the function instead of accessing it directly. If you want your code to work as written, you'll have to wrap your set operation in a CFSCRIPT tag. Hope that helps, J On 7/7/05, Michael Hohnecker <[EMAIL PROTECTED]> wrote: > > How can i pull a url string into a cfsavecontent. below is an example: > > Sample URL String: > http://www.test.com?myurlvar=testing > > Sample CFML Code: > <cfsavecontent variable="testing"> > var myvar = _root.MyUrlVar; > </cfsavecontent> > > I receive no errors when testing. MyVar comes back to me as undefined. > > The code is simplified to match my real problem. > > Thanks, mike > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:4:211397 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

