Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

ASP Question - Simple I hope.

date posted 16th January 2002 18:28

Evening all, and happy new year to all that remember me. Hope you a good
one!

Something's been really annoying me for a few hours and I thought I'd see if
any of you people could help me.

I have a small, very simple, script on an ASP page that gets the referrer
URL and if that referrer is a specified search engine displays which one on
the web page. I also need to extract a little information from the referring
url about what keywords were used to find the site.

Since all search engines have the keywords in their querystrings, which in
turn are part of the referring url I need a method of taking them out and
displaying them.

I hope everyone is following.......here's an example.

1. Somebody searches for 'dustnet york' on yahoo....
2. they are taken to this page:
http://google.yahoo.com/bin/query?p=dustnet+york&hc=0&hs=0
3. The person click the link to http://www.york.dustnet.co.uk and are taken
there

4. The script gets the URL referrer
(http://google.yahoo.com/bin/query?p=dustnet+york&hc=0&hs=0, as above)
5. It then recognises the url from yahoo, and sets a variable SearchEngine =
Yahoo

6. Now this is what I can't do.....It then extracts the keywords from p= and
sets them as a variable KeyWords = "dustnet+york"

If the original search engine were google, it would have a referring url of
http://www.google.com/search?hl=en&q=dustnet+york and would extract the q=

Basically. How do I go from a string to just the p=, q= (o s=, query= for
other search engines)

Cheers,

Jon



Messages by Day
January 31st 2002
January 30th 2002
January 29th 2002
January 28th 2002
January 27th 2002
January 26th 2002
January 25th 2002
January 24th 2002
January 23rd 2002
January 22nd 2002
January 21st 2002
January 20th 2002
January 19th 2002
January 18th 2002
January 17th 2002
January 16th 2002
January 15th 2002
January 14th 2002
January 13th 2002
January 12th 2002
January 11th 2002
January 10th 2002
January 9th 2002
January 8th 2002
January 7th 2002
January 6th 2002
January 5th 2002
January 4th 2002
January 3rd 2002
January 2nd 2002
January 1st 2002


Messages by Month
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000