Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query String syntax help please.

Status
Not open for further replies.

anthonycervantes

Programmer
Oct 25, 2000
9
US
I am trying to pass an email address using a query string. It works most of the time. The times it doesn't is when the email address has certain characters in it. For example:
john&doe@email.com
or
john#doe@email.com

I works for stuff like:
john$doe@email.com

A. Which symbols are used by IE in query strings?
B. How do I pass # and & and other special characters in a query string.
C. How would I get around this problem?

Thank you so much for helping me out.

AC
 
try this:

<script language=&quot;vbscript&quot;>
str=&quot;john&amp;doe@email.com&quot;
urlstr=escape(str)
alert(urlstr)
backtonormal=unescape(urlstr)
alert(backtonormal)
</script> jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top