We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


Multiple variables in a url meant for specific tabs on coldfusion page. How do you grab the specific variable designated for the specific tab or coldfusion page?

Medium Priority
Last Modified: 2013-12-24
I know how to pass multiple variables in a url. My problem is that the each variables in the url is meant for a specific tab on a coldfusion page. How do I specifically grab the appropriate variable to use within the specific tab? This is my dilemma. Thanks in advance for your help.
Watch Question



It depends on your code, <cflayout> tabs are just code within the page.  So you don't need to do anything except reference the variable just like you would in any case.

If you're using the URL reference for your tab, then you need to pass the variable on the URL you are providing to the tab.

Please provide your code and describe the problem you're having (including which variable is not showing up where)


Below is an excerpt of my code. The excerpt represents a web page that has a link back to the home page (<a href="trackertabs.cfm?<cfoutput>#CGI.QUERY_STRING#</cfoutput>&tab=2">Click here to return to Service Tab</a> ).

Two variables are attached to the above link/url (#CGI.QUERY_STRING# and tab=2)

#CGI.QUERY_STRING# represents the username per the login to the site.
tab=2 represents the second tab on the home page.

The goal is to pass the username back to the second tab on the home page. I have been unsuccessful at separating the variables once they are both passed back to the home page.

<a href="<cfoutput>#CGI.QUERY_STRING#</cfoutput>" <br><br>

<a href="trackertabs.cfm?<cfoutput>#CGI.QUERY_STRING#</cfoutput>&tab=2">Click here to return to Service Tab</a></br />

<font size=4>
My Service Requests 

Open in new window


I have been successful at getting the link to return to the 2nd tab on the home page but the username won't display due to it being attached with the 2nd variable in the url.
Unlock this solution and get a sample of our free trial.
(No credit card required)


Your suggestions above worked out well for what I was trying to do. Appreciate the help as I can now continue with my development without being stuck on this issue. Thanks again.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.