Skip to main content
Participant
April 26, 2006
Answered

outputting url with parameters

  • April 26, 2006
  • 2 replies
  • 373 views
I've been using
<CFSET CurrentURL = ' http://' & CGI.SERVER_NAME & CGI.SCRIPT_NAME>
to output a URL, but this does not include the URL parameters (?objectid=1234453-24242 etc.)

The parameters are not always the same (different variable names) so I would like to make sure that the parameters are output no matter what the variable names are. How can I output the parameters with the URL?
    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer Dan_Bracuk
    Set up the variable name value pairs as a variable and append it to your currenturl variable.

    2 replies

    Dan_BracukCorrect answer
    Inspiring
    April 26, 2006
    Set up the variable name value pairs as a variable and append it to your currenturl variable.
    lcounteeAuthor
    Participant
    April 26, 2006
    Thanks. I was hoping there was a neat way to do it - a cgi variable or something - but this works too.