Skip to main content
January 11, 2008
Answered

Getting URL Parameters?

  • January 11, 2008
  • 2 replies
  • 627 views
Is there a CGI variable or other means of getting the current url parameters?

I want to be able to link back to the current page with an additional parameter, but include the current ones as well. I'm currently using the path info variable to get the page, but for pages with url parameters, it doesn't save the user's real location.

For example, if my user is at mysite.com/forum/topic.cfm?topicid=10, #PATH_INFO# only returns mysite.com/forum/topic.cfm, omitting the topicid=10 part. Any ideas?
    This topic has been closed for replies.
    Correct answer Real_Trent
    you can loop through the collection as such

    2 replies

    Real_TrentCorrect answer
    Participant
    January 11, 2008
    you can loop through the collection as such

    Inspiring
    January 11, 2008
    yes. I believe it's called query_string or something like that. cfdump your cgi on a page with url variables, it will be obvious.
    January 14, 2008
    quote:

    Originally posted by: Dan Bracuk
    yes. I believe it's called query_string or something like that. cfdump your cgi on a page with url variables, it will be obvious.

    Thanks Dan, thats exactly it. Not sure how I missed other than the fact that name is a little ambiguous.