If you used fusebox, you wouldn't need to worry about whether the variable came through get or post method.  The famework copy url and form variables to attributes scoped variables.  This also makes it interoperable with cfmodule calls when you call it recursively.  If you are not using fusebox, you can write your own structCopy() and copy url and form
to attributes or request variables, and put it the application.cfm.

Nick Han

>>> [EMAIL PROTECTED] 06/17/04 09:47AM >>>
At the risk of looking not too bright I have a question maybe I can get help, or someone can put me in my place

So about scope.

when I started coding CF (about 7 years ago) I really didn't know about scope at all, then I started using cgi session application client query struct form url and request scopes.

But then I had a massive problems and had to change lots of code especialy when I had forms and urls passing variables to the same page to do the same thing. (mostly I had to write code to dump them all into request scope but I never put together a script to do it, which right now I'm sure I'll find, working with php fusebox form and url vars were dumped into an attributes array easily and I can probably base it on that)

One day I just quit on the whole thing and ever since I realy haven't as many problems.

What do you folks do when you want a variable that can be passed over form or url?
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to