HOME | FERGUSON Digital Blog

Append URL to FORM and FORM to URL

ColdFusion Add comments

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.

0 responses to “Append URL to FORM and FORM to URL”

Leave a Reply



© Copyright 1997-2024, All Rights Reserved Coldfusion and MS SQL2008
Powered by Mango Blog.   Design by FERGUSON Digital
o:Event name="beforeHtmlBodyEnd" />