Jun
5
Ever need to quickly append the FORM scope to the URL scoped variables on a page or the other way around?οΎ Dealing with FORM scoped variables is certainly cleaner in the browser address bar, but sometimes code reuse dictates that you revamp your design concept, rewrite your custom modules, or just append the URL and FORM scopes together and just get back to work.
Here is a fast way to combine both, but you could just use one or the other if you were simply targeting links or form results:
<cfscript>
StructAppend(URL, FORM, "no");
StructAppend(FORM, URL, "no");
</cfscript>
If you find this post useful please leave a comment and let me know how you used the information.