Forum Moderators: phranque

Message Too Old, No Replies

How to save internal site searches

         

ChrisKud5

6:43 pm on Sep 3, 2004 (gmt 0)

10+ Year Member



Hello-

I am interested in being able to save site searches that my users perform into webpages and have them linked to from a large index page of past searches. I know we all see this alot on garbage sites just interested in making more money and having more pages.

My reason for doing this is simlar. I use Adsense on my internal search pages instead of the low paying SiteSearch. Lately I have been seeing a ton more of these search pages not displaying targeted ads. If I was able to save SERP results page as a .asp or .html file and link to it from a index page of site searches these pages would could be crawled by google and have targeted ads a larger portion of the time.

Can anyone point me in the correct direction in terms of software that will do this? Thank you much.

(I hope this is in the correct forum please move if it is not. Thanks)

macrost

12:46 am on Sep 4, 2004 (gmt 0)

10+ Year Member



ChrisKud5,
I have done something similar in this aspect, but I'm saving each search as an xml file, blah, blah.

Take a look into the FileSystemObject that comes in ASP. That should lead you in the right direction.

mincklerstraat

8:55 am on Sep 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't really know your skills level when it comes to coding things, but coding something like this wouldn't be much of a problem - guessing you are probably fairly new to programming. One way would be to save search queries in a db table w/ the number of searches. Figure out what the url parameter is that is used in your searches (if you use POST method, see if it's also accessibly by GET by putting the values in manually in the url - search.asp?this=whatever&that=anotherthing, where 'this' and 'that' are the values you see in source like <input name="this" /> ... <input name="that" />) - and just output however many values you want of popular searches according to this urlstructure:
<a href="search.asp?searchterm=thisterm">thisterm</a>
<a href="search.asp?searchterm=thatterm">thatterm</a>