This content has been marked as final. Show 4 replies
In cfmx, this is already going to be a structure. Just use it. A form may have more variables then you want to use, like url.submit. But you should be able to call the pieces you want. Run my code to get an idea:
<cfset session.urlVars = duplicate(url)> Would probably work.
I like Ken's suggestion of breaking them out into seperate variables, but if for some reason you really wanted to have them as a list - you could use CGI.query_string
Or if you wanted to pass the whole structure and didn't want to use a session variable for some reason you could convert the URL structure into a WDDX string, pass it along in a hidden form field and then convert it back into a CF structure on the next page.
Ken's code works great and that tought me a lot. I need to change the values I am passing, but the loop in that code is exactly what I needed.
Thanks to all!