Advertisement

[x]
Attachment Details

URLDEcode function, how to get Request.Querystring values

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0
how would i get the values from the decoded URL .
As usual, we would use Request.Querystring(key) to get the values from the Request Querystring.
But i do not know how to get the values from the decoded string.


Function UrlDecode(ByVal output)
 On Error Resume Next
   
    output = "" & output
    If output<>"" Then
     Dim i, h, ce, cd
       
        ' convert all pluses to spaces
        output = Replace(output, "+", " ")
       
        ' single quotes, not latin accent character
        output = Replace(output, "%22", Chr(34))
     
        ' convert %hexdigits to the character
        i = InStr(1, output, "%")
        Do While i>0
            h = "&H" & Mid(output, i+1, 2) & ""
            ce = "" & Mid(output, i, 3) & ""
            cd = "" & Chr(CLng(h)) & ""
            If cd <> "" Then
                ' HIDE % (%25 = %)
                If cd = "%" Then cd = "-!-"
                ' % is special - replacing it now would cause
                ' an endless loop. so let's just mark its location
                ' and replace it at the end of the routine
           
            Else
                ' if we can't produce a character, put string back
                ' and hide % sign until the end of the routine
                cd = Replace(ce, "%", "-!-")
           
            End If
           
            ' replace character
            output = Replace(output, ce, cd)
           
            ' find next hex character
            i = InStr(1, output, "%")
        Loop
       
  ' put % signs back
        output = Replace(output, "-!-", "%")
 
    End If
    URLDecode = output
End Function


..in html
<%=URLDEcode(Request.QueryString())%>

This just displays the querystring.  I have tried assigning the decoded string to a NewQuerystring but it doesnt work.  i.e. <% Query.Requeststring= URLDEcode(Request.QueryString())
Related Solutions
Related Solutions
 
Loading Advertisement...
 
Author Comment by williamsF1:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 

Rank: Sage

Expert Comment by b0lsc0tt:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Author Comment by williamsF1:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 

Rank: Sage

Accepted Solution by b0lsc0tt:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Author Comment by williamsF1:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 

Rank: Sage

Expert Comment by b0lsc0tt:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Author Comment by williamsF1:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 

Rank: Sage

Expert Comment by b0lsc0tt:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
Loading Advertisement...
20080924-EE-VQP-41 / EE_QW_2_20070628