Avatar of totallywastedtoo
totallywastedtoo

asked on 

Request.Servervariables("Query_String")

Hi All,

I need some clarification: Request.Servervariables("Query_String") only return one pair of querystring?

What should I use if I want to request the entire querystring such as

"PC=10012404&CL=4&L1=10000000&L2=10012000"

from

www.blah.com?PC=10012404&CL=4&L1=10000000&L2=10012000?

Thanks.
Web Development

Avatar of undefined
Last Comment
davidlars99
Avatar of sajuks
sajuks

is this what ur asking ?
www.blah.com?PC=10012404&CL=4&L1=10000000&L2=10012000

Request.QueryString("PC") would be equal to 10012404
and
Request.QueryString("CL") would be equal to 4
and
Request.QueryString("L1") would be equal to 10000000
and
Request.QueryString("L") would be equal to 10012000
Avatar of dreamer007
dreamer007

You could request them individually? I mean, you want the value of PC, CL, L1 and L2...?

d.
Avatar of davidlars99
davidlars99
Flag of United States of America image

maybe this?

response.write("http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("PATH_INFO") & "?" & Request.ServerVariables("QUERY_STRING") & "<br><br>")
ASKER CERTIFIED SOLUTION
Avatar of davidlars99
davidlars99
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of davidlars99
davidlars99
Flag of United States of America image

run this and you'll see what's what

      for each d in Request.ServerVariables
               response.write(d & "=" & Request.ServerVariables(d) & "<br>")
      next
Web Development
Web Development

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.

78K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo