olivierm
November 20th, 2005, 11:40
I would like to put something on my main index.php page that bypasses the main index.php page if the referrer is a specific site: It should do the following:
If the referrer (i.e. the site where my visitor comes from)contains the word "geneanet" And if the referrer contains the word "rech"
Then search the string contained in the referrer between the string "rech=" and the next "&"
If it exist then show the result using an existing modules/genealogy/search.php page
Else just show the normal index.php page
Can someone help me to write this correctly ? I am a beginner in php writing.
Thank you in advance,
Olivier Marquet
My site is at http://www.neptis.be/nuke1
If the referrer (i.e. the site where my visitor comes from)contains the word "geneanet" And if the referrer contains the word "rech"
Then search the string contained in the referrer between the string "rech=" and the next "&"
If it exist then show the result using an existing modules/genealogy/search.php page
Else just show the normal index.php page
Can someone help me to write this correctly ? I am a beginner in php writing.
Thank you in advance,
Olivier Marquet
My site is at http://www.neptis.be/nuke1