Re: Query Results sent from search engines CGI variable?

2010-06-01 Thread Wil Genovese

Try using cfdump to output the CGI scope.  Then you will be able to see all the 
CGI variable available to you.

http://www.uxbinternet.com
> 
> 
> 
> 
> 
> 
> 
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334200
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Query Results sent from search engines CGI variable?

2010-06-01 Thread Barney Boisvert

It'll be in the referrer, if present, which is sent by the browser.
cgi.http_referer, split it up, check the domain to identify the search
engine, and then check the query string to find the search query under
the corresponding variable.

cheers,
barneyb

On Tue, Jun 1, 2010 at 1:34 PM, UXB Internet  wrote:
>
> I have a client who wants to make their site more user friendly when someone
> is sent to them from a search engine.  What they want is when someone comes
> from a search engine link that we obtain the original search query (if sent)
> and in addition to showing the requested page present a list of other items
> from their site matching an internal search result using that criteria.
>
> I know that many search engines send the original search query over to the
> website I am assuming in the header because I can obtain that information
> from the web-server log reports.  What I don't know is if it is available in
> the CGI variables Cold Fusion can get from IIS6.
>
> Does anyone know if they are available and how to programmatically extract
> them for use within Cold Fusion?
>
>
> Dennis Powers
> UXB Internet - A Website Design & Hosting Company
> P.O. Box 6028
> Wolcott, CT 06716
> 203-879-2844
> http://www.uxbinternet.com
>
>
>
>
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334199
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Query Results sent from search engines CGI variable?

2010-06-01 Thread Justin Scott

> What I don't know is if it is available in
> the CGI variables Cold Fusion can get from IIS6.

The few times I've had to do this I parsed out the original query from the
CGI.HTTP_Referer variable (URL string of the page that linked to yours).
The format is slightly different depending on which engine the user came
from, but it's not too hard to get the string out in a usable form.


-Justin Scott



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334198
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Query Results sent from search engines CGI variable?

2010-06-01 Thread Che Vilnonis

Try parsing the cgi.http_referer variable. It won't always have a value, but
when it does, you can extract the keywords used when querying the search
engine.

Regards, Che 

-Original Message-
From: UXB Internet [mailto:denn...@uxbinternet.com] 
Sent: Tuesday, June 01, 2010 4:35 PM
To: cf-talk
Subject: Query Results sent from search engines CGI variable?

I have a client who wants to make their site more user friendly when someone
is sent to them from a search engine.  What they want is when someone comes
from a search engine link that we obtain the original search query (if sent)
and in addition to showing the requested page present a list of other items
from their site matching an internal search result using that criteria.

I know that many search engines send the original search query over to the
website I am assuming in the header because I can obtain that information
from the web-server log reports.  What I don't know is if it is available in
the CGI variables Cold Fusion can get from IIS6.

Does anyone know if they are available and how to programmatically extract
them for use within Cold Fusion?



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334197
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Query Results sent from search engines CGI variable?

2010-06-01 Thread UXB Internet

I have a client who wants to make their site more user friendly when someone
is sent to them from a search engine.  What they want is when someone comes
from a search engine link that we obtain the original search query (if sent)
and in addition to showing the requested page present a list of other items
from their site matching an internal search result using that criteria.

I know that many search engines send the original search query over to the
website I am assuming in the header because I can obtain that information
from the web-server log reports.  What I don't know is if it is available in
the CGI variables Cold Fusion can get from IIS6.

Does anyone know if they are available and how to programmatically extract
them for use within Cold Fusion?


Dennis Powers
UXB Internet - A Website Design & Hosting Company
P.O. Box 6028
Wolcott, CT 06716
203-879-2844
http://www.uxbinternet.com







~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334196
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm