Forum Moderators: coopster

Message Too Old, No Replies

super global needed?

         

PoohBear88

5:46 am on Oct 18, 2007 (gmt 0)

10+ Year Member



I'm a php noob.

Is there a superglobal that tells which keywords the visitors that came from search engines are?

Say a visitor searches for "apples" on google, how can i implement that keyword using php?

perl_diver

6:00 am on Oct 18, 2007 (gmt 0)

10+ Year Member



why not ask in the pee aych pee forum? ;)

jatar_k

12:16 pm on Oct 18, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



the search term should be in the url so take a look at the $_GET array

Achernar

12:19 pm on Oct 18, 2007 (gmt 0)

10+ Year Member Top Contributors Of The Month



Look in $_SERVER["HTTP_REFERER"]

jatar_k

12:23 pm on Oct 18, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



yeah, Achernar is right, I'm wrong, not enough coffee and posted before finishing the thought

it is in the get string which is available to you in HTTP_REFERER as above

oops