Question

request.querystring then replace syntax

Asked by: bschwarting

why doesn't this work?

ADDR1 = Request.Querystring("val20")
ADDR1 = Replace(  ADDR1,"#","" )

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-09-14 at 14:08:21ID21990131
Topic

Active Server Pages (ASP)

Participating Experts
4
Points
500
Comments
38

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Replace() -- Syntax Error
    Why doesnt': --Dim currname As String --currname = ActiveDocument.FullName --replace(currname," ","%20",1,-1,1) work? (at least in Word 2003's implementation of VBA)? I get, "Compile Error. Expected =" I think I am faithfully following the syntax...
  2. Why Replace() doesn't work on both cases?
    Hello, I'm having trouble iwth Replace(). In the following statement: strLink = Replace(s, "http", "https", vbTextCompare) works on lower cases but when it is upper case it just doesn't work. I'm using vbTextCompare so it should work find regardless of ...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: b0lsc0ttPosted on 2006-09-14 at 14:31:50ID: 17524591

bschwarting,

Response.Write ADDR1 to confirm that it contains a pound sign before you try to replace.  Then use a response.write for the results.  What does happen?  Are you getting an error or just no change to the value?

Let me know if you have any questions or need more information.

b0lsc0tt

 

by: bschwartingPosted on 2006-09-14 at 14:35:08ID: 17524617

the # sign is still there, that's why I'm asking.  when it has the # sign, it messes up the rest of the data below it.  when it's gone, it fixes the issue.

 

by: b0lsc0ttPosted on 2006-09-14 at 14:47:35ID: 17524705

Change the replace to the line below.  The pound sign is changed in the querystring to %23.

ADDR1 = Replace(ADDR1, "%23", "")

 

by: netsmithcentralPosted on 2006-09-14 at 17:56:56ID: 17525872

Take the space out before ADDR1 in the Replace function:
 ADDR1 = Replace(ADDR1,"#","")

 

by: Scripter25Posted on 2006-09-14 at 19:24:06ID: 17526269

As a backing up of b0lsc0tt answer
you can check out these links to get a better understanding of URL encoding
http://www.permadi.com/tutorial/urlEncoding/
http://www.permadi.com/tutorial/ascii/index.html


Do Not accept this as the answer b01sc0tt deserves the credit on this one

 

by: bschwartingPosted on 2006-09-15 at 06:28:17ID: 17529202

i'm lost on this one.  i've tried all the above, and the # won't go away.  i've tried all these variants:

ADDR1 = Replace(ADDR1,"#","")
ADDR1 = Replace( ADDR1,"#","" )
ADDR1 = Replace(ADDR1, "%23", "")
ADDR1 = Replace( ADDR1, "%23", "" )
ADDR1 = Replace(ADDR1, "#", "%23")
ADDR1 = Replace( ADDR1, "#", "%23" )

no luck.  here is the code from the previous page where it gets posted, maybe this will help:

<td>
<a href="gas_print.asp?val1=<%= x_MBRSEP %>&val2=<%= x_NAME %>&val3=<%= x_RATE %>&val4=<%= x_CLASS %>&val5=<%= x_TELEPHONE %>&val6=<%= x_LOCATION %>&val7=<%= x_METER %>&val8=<%= x_READDATE %>&val9=<%= x_READDATE %>&val10=<%= x_NBRDAYSSVC %>&val11=<%= x_PREVMTRREAD %>&val12=<%= x_METERREAD %>&val13=<%= x_KWH %>&val14=<%= x_FUEL2 %>&val15=<%= x_APPLNBR %>&val16=<%= x_DUEDATE %>&val17=<%= x_MISCCHG %>&val18=<%= x_CYCLE %>&val19=<%= x_BILLDATE %>&val20=<%= x_ADDR1 %>&val21=<%= x_ADDR2 %>&val22=<%= x_ADDR3 %>">Print</a>      
</td>

 

by: Scripter25Posted on 2006-09-15 at 07:36:12ID: 17529740

Try this

ADDR1 = Replace(Request.QUeryString("val20"),"%23","")

IF that does not work then try
ADDR1 = Replace(Request.QUeryString("val20"),"#","")


Also look at the query string in the address bar and look for val20 check to see what it says for that and then put that value in here so we can see maybe there is something with what you have for your data..




 

 

by: bschwartingPosted on 2006-09-15 at 07:39:30ID: 17529766

same thing:

&val20=#%20100%20CHEROKEE%20ST%20SUITE%20410&val21

 

by: b0lsc0ttPosted on 2006-09-15 at 11:03:52ID: 17531357

I have one more that you can try.  If it doesn't work then I have something we can use to maybe identify what character is used.  By the way, what browser are you using?  Have you tried another type of browser?

ADDR1 = Replace(ADDR1, Chr(35), "")

 

by: Scripter25Posted on 2006-09-15 at 11:24:56ID: 17531487

b0lsc0tt
 maybe on to something with that
Also if you do not need the # sign at all on this page why dont you try to remove the # from the variable prior to placing into the querystring on the first page?

 

by: bschwartingPosted on 2006-09-15 at 11:25:20ID: 17531491

that didn't work either.

i'm using firefox and IE6 to test.

let me give a little more info, maybe this will help.

two pages are being used:
#1 = memberno_list.asp ** has this code: <a href="gas_print.asp?val1=<%= x_MBRSEP %>&val2=....)
#2 = gas_print.asp ** has this code: ADDR1 = Replace(ADDR1,"#","")

If I use the replace code on page #1, it works fine (cleanup the text before I passit to the URL), but it won't work on page#2 (after it's in the URL).  The reason i'm trying to get this working on page#2 is because I would have to update up to 50 pages each time I go through a routine to make this print function work. (long story)  If i can get the replace code to work in page#2, i don't ever have to update the 50+ pages each time in #1.

since the text is already passed to the url, i would think i could manipulate it before it gets to the field that I response.write it out, and fix my problem.  easier said than done i guess.

 

by: bschwartingPosted on 2006-09-15 at 11:25:56ID: 17531497

Scripter25, ha, i guess we were writing at the same time, read above...

 

by: Scripter25Posted on 2006-09-15 at 11:38:09ID: 17531597

Is the # sign always in the first charater in the string? If so try this
ADDR1 = RIGHT(ADDR1, LEN(ADDR1)-1)
The syntax may be a bit off

 

by: bschwartingPosted on 2006-09-15 at 11:40:25ID: 17531615

no, the # is all over the address.

 

by: b0lsc0ttPosted on 2006-09-15 at 11:40:34ID: 17531617

Only 50 pages??  Why not just update them? :D

This problem isn't rare.  I have seen issues like this that can be a little work to figure out.  Best way to do it is before, like you already mentioned, but it would definitely be a lot of work in this case.  The code below should break tell us the Ansi code for each character (formatted as code[character],).  You could also copy the information in some Hex editor program to get he information.  The code below is a modified version of code by Acperkins in http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21949345.html.

Dim i
For i = 1 to Len(ADDR1)
   Response.Write Asc(Mid(ADDR1, i, 1)) & "[" & Mid(ADDR1, i, 1) & "], "
Next

 

by: b0lsc0ttPosted on 2006-09-15 at 11:41:26ID: 17531630

What is the "code" for the # character?

 

by: bschwartingPosted on 2006-09-15 at 11:59:27ID: 17531812

b0lsc0tt,

this is what i got:

50[2], 57[9], 48[0], 53[5], 32[ ], 76[L], 73[I], 66[B], 82[R], 65[A], 82[R], 89[Y], 32[ ], 76[L], 78[N],

 

by: bschwartingPosted on 2006-09-15 at 12:10:13ID: 17531901

Comment from b0lsc0tt
Date: 09/15/2006 11:41AM PDT

What is the "code" for the # character?

huh?

 

by: b0lsc0ttPosted on 2006-09-15 at 12:53:24ID: 17532222

Those results show that ADDR1 contained "2905 LIBRARY LN" (no quotes).  If you response.write ADDR1 then do you see the leading # sign?  If not, then where do it appear?

Instead of using ADDR1 in the code I provided try using Request.Servervariables("QUERY_STRING").  That should show us the whole querystring so it may be long.  Look for the section that has val20 and what is after it?  Hopefully you will see the characters before the address and not just the address that we got the last time.

 

by: HypnochuPosted on 2006-09-16 at 04:43:25ID: 17534904

URL encoding has been mentioned already above, but has it been tried?

On the previous page where it gets posted, try this:

<%
Dim URLParams

URLParams = "?val1=" & x_MBRSEP
URLParams = URLParams & "&val2="& x_NAME
URLParams = URLParams & "&val3=" & x_RATE
URLParams = URLParams & "&val4=" & x_CLASS
URLParams = URLParams & "&val5=" & x_TELEPHONE
URLParams = URLParams & "&val6=" & x_LOCATION
URLParams = URLParams & "&val7=" & x_METER
URLParams = URLParams & "&val8=" & x_READDATE
URLParams = URLParams & "&val9=" & x_READDATE
URLParams = URLParams & "&val10=" & x_NBRDAYSSVC
URLParams = URLParams & "&val11=" & x_PREVMTRREAD
URLParams = URLParams & "&val12=" & x_METERREAD
URLParams = URLParams & "&val13=" & x_KWH
URLParams = URLParams & "&val14=" & x_FUEL2
URLParams = URLParams & "&val15=" & x_APPLNBR
URLParams = URLParams & "&val16=" & x_DUEDATE
URLParams = URLParams & "&val17=" & x_MISCCHG
URLParams = URLParams & "&val18=" & x_CYCLE
URLParams = URLParams & "&val19=" & x_BILLDATE
URLParams = URLParams & "&val20=" & x_ADDR1
URLParams = URLParams & "&val21=" & x_ADDR2
URLParams = URLParams & "&val22=" & x_ADDR3
URLParams = Server.URLEncode(URLParams)
%>  

<td>
<a href="gas_print.asp<%=URLParams%>">Print</a>    
</td>

 

by: bschwartingPosted on 2006-09-26 at 07:19:07ID: 17601425

nope, looks like it's just not going to work on my second page.  guess i'll just have to use my find/replace and hope for the best!

 

by: bschwartingPosted on 2006-09-26 at 08:13:46ID: 17602007

b0lsc0tt,

what hex editor are you using?

 

by: bschwartingPosted on 2006-09-26 at 13:11:50ID: 17605136

>>>>>>>>>>>>>>>>>>>>>>>>>>>
Comment from b0lsc0tt
Date: 09/15/2006 11:41AM PDT
      Comment       Accept

What is the "code" for the # character?
>>>>>>>>>>>>>>>>>>>>>>>>>>>

b0lsc0tt,
not sure what planet i was one, but i just figured out what you were asking.  the code to convert it to ansi stops when it sees the # sign.  so it never gives me the "code" for the # symbol.

i just now re-read your other response (The code below should break tell us the Ansi code for each character (formatted as code[character],)) and figured out how you got text out of all those jumbled #'s and letters...(haha)

anway, to reiterate, the ansi code stops when it see's a #, and gives no code.

that is a sweet trick for future use though.

thanks,
bschwarting

 

by: bschwartingPosted on 2006-09-26 at 13:18:33ID: 17605194

example of what happens:

ansi code generated with this text in the field (100 CHEROKEE ST SUITE # 410)
49[1], 48[0], 48[0], 32[ ], 67[C], 72[H], 69[E], 82[R], 79[O], 75[K], 69[E], 69[E], 32[ ], 83[S], 84[T], 32[ ], 83[S], 85[U], 73[I], 84[T], 69[E], 32[ ], 32[ ],

 

by: b0lsc0ttPosted on 2006-09-26 at 13:55:59ID: 17605473

I'm glad you are back on this planet and my comments make a little more sense. :D  I agree that the code is pretty sweet and worth keeping handy.

Did you also try using Request.Servervariables("QUERY_STRING") instead of ADDR1?  Did it still end at the # sign and not show the end of val20 or the other val's after it?

Thanks in advance for your reply and the additional info.

 

by: bschwartingPosted on 2006-09-26 at 14:13:03ID: 17605601

same thing w/ Request.Querystring("val20")

49[1], 48[0], 48[0], 32[ ], 67[C], 72[H], 69[E], 82[R], 79[O], 75[K], 69[E], 69[E], 32[ ], 83[S], 84[T], 32[ ], 83[S], 85[U], 73[I], 84[T], 69[E], 32[ ], 32[ ],

 

by: b0lsc0ttPosted on 2006-09-27 at 13:10:18ID: 17613658

No.  I may have misunderstood but I want you to use the following to show the WHOLE querystring.

Dim i
For i = 1 to Len(Request.Servervariables("QUERY_STRING"))
   Response.Write Asc(Mid(Request.Servervariables("QUERY_STRING"), i, 1)) & "[" & Mid(Request.Servervariables("QUERY_STRING"), i, 1) & "], "
Next

If that is what you used then I apologize but it seems that you used Request.Querystring("val20").  The results will probably be REALLY long but may give us an idea of the problem.

Can you provide a URL for me to test?  I can't remember if you mentioned this already or if I have asked but did you test on other browsers or computers?

Thanks!

 

by: bschwartingPosted on 2006-09-27 at 13:18:10ID: 17613730

IE and firefox

here is the end of it, same thing, stops after the #

118[v], 97[a], 108[l], 50[2], 48[0], 61[=], 49[1], 48[0], 48[0], 37[%], 50[2], 48[0], 67[C], 72[H], 69[E], 82[R], 79[O], 75[K], 69[E], 69[E], 37[%], 50[2], 48[0], 83[S], 84[T], 37[%], 50[2], 48[0], 83[S], 85[U], 73[I], 84[T], 69[E], 37[%], 50[2], 48[0], 37[%], 50[2], 48[0],

value 20 = ADDR1 = 100 CHEROKEE ST SUITE # 410

 

by: b0lsc0ttPosted on 2006-09-27 at 13:48:26ID: 17614005

So you also saw all of the other name/value pairs before that section you copied in your comment?  Did you get val21 or val22?  Can you see more of the querystring in your browser's address bar?

It has been a little while since we started this and I didn't find this information while quickly reading the previous comments but please forgive me if I overlooked it.  Is this info coming from a form?  User/visitor input?  If not what is the source?  If it is a form try changing the method to POST.  Does that fix the problem?  Although the earlier comments and discussion didn't seem like the problem was related to length limits on the querystring that may explain why it is completely cut off, especially if you don't get the final 2 name/values either.

Are there actually 2 spaces after SUITE in the address?

 

by: bschwartingPosted on 2006-09-27 at 14:00:59ID: 17614116

there are actually 42 variables, i just removed some for simplicity sake.

no matter where i put the # symbol in the data, it always stops at it (#), whether it's val1 or val42.

the # is currently in val20, so no, i don't get val21 or val22 or beyond...

yes, i see all the data in the browsers address bar.

yes, there are 2 spaces after SUITE in the address

data is posted via a form with the POST method, using this:

<a href="gas_print.asp?val1=<%= x_MBRSEP %>&val2=<%= x_NAME %>&val3=<%= x_RATE %>&val4=<%= x_CLASS %>&val5=<%= x_TELEPHONE %>&val6=<%= x_LOCATION %>&val7=<%= x_METER %>&val8=<%= x_READDATE %>&val9=<%= x_READDATE %>&val10=<%= x_NBRDAYSSVC %>&val11=<%= x_PREVMTRREAD %>&val12=<%= x_METERREAD %>&val13=<%= x_KWH %>&val14=<%= x_FUEL2 %>&val15=<%= x_APPLNBR %>&val16=<%= x_DUEDATE %>&val17=<%= x_MISCCHG %>&val18=<%= x_CYCLE %>&val19=<%= x_BILLDATE %>&val20=<%= x_ADDR1 %>&val21=<%= x_ADDR2 %>&val22=<%= x_ADDR3 %>&val23=<%= x_BILLTYPE %>&val24=<%= x_SVCADDR %>&val25=<%= x_CHG1 %>&val26=<%= x_ZIP %>&val27=<%= x_READSEQ %>&val28=<%= x_OTHERACCTNBR %>&val29=<%= x_NET %>&val30=<%= x_TAX %>&val31=<%= x_LOCALTAX %>&val32=<%= x_FRANCHISETAX %>&val33=<%= x_GROSSTAX %>&val34=<%= x_OTHERTAX %>&val35=<%= x_ENERGY %>&val36=<%= x_FUEL %>&val37=<%= x_WEATHER %>&val38=<%= x_SLCHG %>&val39=<%= x_OTHERAMT1 %>&val40=<%= x_OTHERAMT2 %>&val41=<%= x_OTHERAMT3 %>&val42=<%= x_INTRATE %>">Print</a>

 

by: b0lsc0ttPosted on 2006-09-29 at 10:27:33ID: 17629170

Thanks for the information and answers.

Copy the URL from your browser's address bar starting at the character to the right of the question mark (?) until the end.  That should be the complete querystring.  Copy the information into a variable and try running the ASCII character loop on that variable.  Let me know if you have questions about doing this.  Let's see if we get the results for the # sign now.

Are you using the post method for your form and also putting information in the querystring?  You used the anchor tag in your last comment and that is different from a form and will only send information via the querystring.  The anchor tag does not have a "post method."  If the information is in an anchor tag then it is not coming directly from a form but from that anchor tag.  What builds that tag and the information in its URL?  Could the # sign be getting changed by some step in the process that you haven't mentioned or is it coming from a database?  These questions are to see if we can find some other way to identify the character.

I do appreciate your patience as we try to get this to work.  Keep in mind that we are trying to "fix" something that is "broken."  The real solution would be correcting the page submitting the information and we may not be able to find a way to solve it in the page getting the info.  In this case it will be better if we can get it to work but that may not be possible.

Let me know what you get or if you have any questions.

 

by: bschwartingPosted on 2006-10-03 at 08:06:18ID: 17652060

looks like this isn't possible, thanks for all the assistance.

 

by: b0lsc0ttPosted on 2006-10-03 at 09:39:49ID: 17652787

Your welcome!  I was really hoping that we could get it to work somehow but I agree with your last comment.  Thank you for the grade, the points and the fun question.

 

by: Scripter25Posted on 2006-10-05 at 10:23:38ID: 17670511

I know this is a bit late but this may help others out in the future


' Decode the urlEncoded Query String Referer data
Function URLDecode(str)

str = uCase(str)
str = Replace(str, "%20", " ")
str = Replace(str, "%21", "!")
str = Replace(str, "%22", Chr(34))
str = Replace(str, "%23", "#")
str = Replace(str, "%24", "$")
str = Replace(str, "%25", "%")
str = Replace(str, "%26", "&")
str = Replace(str, "%27", "'")
str = Replace(str, "%28", "(")
str = Replace(str, "%29", ")")
str = Replace(str, "%2A", "*")
str = Replace(str, "%2B", "+")
str = Replace(str, "%2C", ",")
str = Replace(str, "%2D", "-")
str = Replace(str, "%2E", ".")
str = Replace(str, "%2F", "/")
str = Replace(str, "%30", "0")
str = Replace(str, "%31", "1")
str = Replace(str, "%32", "2")
str = Replace(str, "%33", "3")
str = Replace(str, "%34", "4")
str = Replace(str, "%35", "5")
str = Replace(str, "%36", "6")
str = Replace(str, "%37", "7")
str = Replace(str, "%38", "8")
str = Replace(str, "%39", "0")
str = Replace(str, "%3A", ":")
str = Replace(str, "%3B", ";")
str = Replace(str, "%3C", "<")
str = Replace(str, "%3D", "=")
str = Replace(str, "%3E", ">")
str = Replace(str, "%3F", "?")
str = Replace(str, "%40", "@")
str = Replace(str, "%41", "A")
str = Replace(str, "%42", "B")
str = Replace(str, "%43", "C")
str = Replace(str, "%44", "D")
str = Replace(str, "%45", "E")
str = Replace(str, "%46", "F")
str = Replace(str, "%47", "G")
str = Replace(str, "%48", "H")
str = Replace(str, "%49", "I")
str = Replace(str, "%4A", "J")
str = Replace(str, "%4B", "K")
str = Replace(str, "%4C", "L")
str = Replace(str, "%4D", "M")
str = Replace(str, "%4E", "N")
str = Replace(str, "%4F", "O")
str = Replace(str, "%50", "P")
str = Replace(str, "%51", "Q")
str = Replace(str, "%52", "R")
str = Replace(str, "%53", "S")
str = Replace(str, "%54", "T")
str = Replace(str, "%55", "U")
str = Replace(str, "%56", "V")
str = Replace(str, "%57", "W")
str = Replace(str, "%58", "X")
str = Replace(str, "%59", "Y")
str = Replace(str, "%5A", "Z")
str = Replace(str, "%5B", "[")
str = Replace(str, "%5C", "\")
str = Replace(str, "%5D", "]")
str = Replace(str, "%5E", "^")
str = Replace(str, "%5F", "_")
str = Replace(str, "%60", "`")
str = Replace(str, "%61", "a")
str = Replace(str, "%62", "b")
str = Replace(str, "%63", "c")
str = Replace(str, "%64", "d")
str = Replace(str, "%65", "e")
str = Replace(str, "%66", "f")
str = Replace(str, "%67", "g")
str = Replace(str, "%68", "h")
str = Replace(str, "%69", "i")
str = Replace(str, "%6A", "j")
str = Replace(str, "%6B", "k")
str = Replace(str, "%6C", "l")
str = Replace(str, "%6D", "m")
str = Replace(str, "%6E", "n")
str = Replace(str, "%6F", "o")
str = Replace(str, "%70", "p")
str = Replace(str, "%71", "q")
str = Replace(str, "%72", "r")
str = Replace(str, "%73", "s")
str = Replace(str, "%74", "t")
str = Replace(str, "%75", "u")
str = Replace(str, "%76", "v")
str = Replace(str, "%77", "w")
str = Replace(str, "%78", "x")
str = Replace(str, "%79", "y")
str = Replace(str, "%7A", "z")
str = Replace(str, "%7B", "{")
str = Replace(str, "%7C", "|")
str = Replace(str, "%7D", "}")
str = Replace(str, "%7E", "~")
str = Replace(str, "%io", "h")
str = Replace(str, "%A0", " ")
str = Replace(str, "%A1", "¡")
str = Replace(str, "%A2", "¢")
str = Replace(str, "%A3", "£")
str = Replace(str, "%A4", "¤")
str = Replace(str, "%A5", "¥")
str = Replace(str, "%A6", "¦")
str = Replace(str, "%A7", "§")
str = Replace(str, "%A8", "¨")
str = Replace(str, "%A9", "©")
str = Replace(str, "%AA", "ª")
str = Replace(str, "%AB", "«")
str = Replace(str, "%AC", "")
str = Replace(str, "%AD", "­")
str = Replace(str, "%AE", "®")
str = Replace(str, "%AF", "¯")
str = Replace(str, "%B0", "°")
str = Replace(str, "%B1", "±")
str = Replace(str, "%B2", "²")
str = Replace(str, "%B3", "³")
str = Replace(str, "%B4", "´")
str = Replace(str, "%B5", "µ")
str = Replace(str, "%B6", "")
str = Replace(str, "%B7", "·")
str = Replace(str, "%B8", "¸")
str = Replace(str, "%B9", "¹")
str = Replace(str, "%BA", "º")
str = Replace(str, "%BB", "»")
str = Replace(str, "%BC", "¼")
str = Replace(str, "%BD", "½")
str = Replace(str, "%BE", "¾")
str = Replace(str, "%BF", "¿")
str = Replace(str, "%C0", "À")
str = Replace(str, "%C1", "Á")
str = Replace(str, "%C2", "Â")
str = Replace(str, "%C3", "Ã")
str = Replace(str, "%C4", "Ä")
str = Replace(str, "%C5", "Å")
str = Replace(str, "%C6", "Æ")
str = Replace(str, "%C7", "Ç")
str = Replace(str, "%C8", "È")
str = Replace(str, "%C9", "É")
str = Replace(str, "%CA", "Ê")
str = Replace(str, "%CB", "Ë")
str = Replace(str, "%CC", "Ì")
str = Replace(str, "%CD", "Í")
str = Replace(str, "%CE", "Î")
str = Replace(str, "%CF", "Ï")
str = Replace(str, "%D0", "Ð")
str = Replace(str, "%D1", "Ñ")
str = Replace(str, "%D2", "Ò")
str = Replace(str, "%D3", "Ó")
str = Replace(str, "%D4", "Ô")
str = Replace(str, "%D5", "Õ")
str = Replace(str, "%D6", "Ö")
str = Replace(str, "%D7", "×")
str = Replace(str, "%D8", "Ø")
str = Replace(str, "%D9", "Ù")
str = Replace(str, "%DA", "Ú")
str = Replace(str, "%DB", "Û")
str = Replace(str, "%DC", "Ü")
str = Replace(str, "%DD", "Ý")
str = Replace(str, "%DE", "Þ")
str = Replace(str, "%DF", "ß")
str = Replace(str, "%E0", "à")
str = Replace(str, "%E1", "á")
str = Replace(str, "%E2", "â")
str = Replace(str, "%E3", "ã")
str = Replace(str, "%E4", "ä")
str = Replace(str, "%E5", "å")
str = Replace(str, "%E6", "æ")
str = Replace(str, "%E7", "ç")
str = Replace(str, "%E8", "è")
str = Replace(str, "%E9", "é")
str = Replace(str, "%EA", "ê")
str = Replace(str, "%EB", "ë")
str = Replace(str, "%EC", "ì")
str = Replace(str, "%ED", "í")
str = Replace(str, "%EE", "î")
str = Replace(str, "%EF", "ï")
str = Replace(str, "%F0", "ð")
str = Replace(str, "%F1", "ñ")
str = Replace(str, "%F2", "ò")
str = Replace(str, "%F3", "ó")
str = Replace(str, "%F4", "ô")
str = Replace(str, "%F5", "õ")
str = Replace(str, "%F6", "ö")
str = Replace(str, "%F7", "÷")
str = Replace(str, "%F8", "ø")
str = Replace(str, "%F9", "ù")
str = Replace(str, "%FA", "ú")
str = Replace(str, "%FB", "û")
str = Replace(str, "%FC", "ü")
str = Replace(str, "%FD", "ý")
str = Replace(str, "%FE", "þ")
str = Replace(str, "%FF", "ÿ")
str = Replace(str, "+", " ")

    URLDecode = lCase(str)
End Function

 

by: bschwartingPosted on 2006-10-06 at 08:17:25ID: 17677112

added the function above, and tried this:

ADDR1 = Request.Querystring("val20")
ADDR1 = URLDecode(ADDR1)

still no go.

 

by: Scripter25Posted on 2006-10-06 at 10:06:47ID: 17678311

sorry but it is a good function for future reference....

You just have one of those Bermuta Triangle issues

The world may never know

 

by: bschwartingPosted on 2006-10-06 at 10:23:24ID: 17678429

no doubt it's a good function, it just didn't work for my situation.

 

by: bschwartingPosted on 2006-10-06 at 10:23:49ID: 17678432

function kept for future reference though, thanks!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...