Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7737197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:56:07+00:00 2026-06-01T07:56:07+00:00

Hi I am using a code to get the referral URL as you can

  • 0

Hi I am using a code to get the referral URL as you can see below:

sRef = encode(Request.ServerVariables("HTTP_REFERER"))

This code is getting the following URL: http://www.rzammit.com/pages/linux-form.asp?adv=101&loc=349

From that url I want to grab the ADV and LOC (Request.querystring doesnt work)

Any help please on how I can do this? All this is happening in a script.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:56:08+00:00Added an answer on June 1, 2026 at 7:56 am

    I can’t believe I have done this. ASP Classic IS my first web programming love so I had to 🙂

    <%
    
    URL="http://www.rzammit.com/pages/linux-form.asp?adv=101&loc=349&websync=ert4545445&put=4563"
    
    
    Response.write ("adv = " + GetVarValue(URL, "adv"))
    response.write("<br>")
    Response.write ("loc = " + GetVarValue(URL, "loc"))
    response.write("<br>")
    Response.write ("adv = " + GetVarValue(URL, "websync"))
    response.write("<br>")
    Response.write ("gput = " + GetVarValue(URL, "gput"))
    response.write("<br>")
    Response.write ("put = " + GetVarValue(URL, "put"))
    response.write("<br>")
    
    %>
    
    <br><br><br>
    
    
    
    <%
    function GetVarValue(Source, VarName)
        pos1 = instr(source, varname + "=")
    
    'to check if the variable was not found
        if pos1=0 then
            GetVarValue="Not Found!!!"
            exit function
        end if
    
        pos1 = pos1 + len(varName) + 1
    
        pos2=instr(mid(source,pos1), "&")-1
    
    
    'to check if it was the last variable
        if pos2=-1 then
            str1 = mid(source, pos1)
        else
            str1 = mid(source, pos1, pos2)
        end if
        GetVarValue=str1
    
    
    
    End Function
    
    %>
    

    With this function in your page you can query any variable by passing the variable name and URL string to GetVarValue!

    (PS: if this answer works, accept this answer, it will do wonders to my StackOverflow Repo 🙂 )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using this code to get data from a URL: NSURL *url
i using below code to get a picture from URL: URL url=new URL(http://www.google.com/images/logos/ps_logo2.png); InputStream
I'm using this code to get data using cURL $url='http://example.com/'; //URL to get content
After using this code to get my link to show me 3 database entrys
I am using this code to get the background image of a div .
I'm using this code for get all news: List<aspnet_News> allNews = context.aspnet_News.OrderByDescending(i => i.NewsId).ToList();
Using the following code I get a nice formatted string: Request.QueryString.ToString Gives me something
I'm using code below to get JSON data: [AcceptVerbs(HttpVerbs.Get)] public JsonResult getBranchViaJson() { Json(getBranchList(AppSession.BranchID.Value));
I am using below code to get fade in fadeout effect for menus. Presently
I am using this code to get the windows version: #define BUFSIZE 256 bool

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.