Welcome to WebmasterWorld Guest from 107.20.54.98

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Display something when a visitor clicks on 3rd page...

     
10:03 am on Jan 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 2, 2002
posts:1099
votes: 0


Hi, I would like to use PHP or whatever technology possible to allow me display something whenever a visitor is making the 1st and 3rd page view on my site.

for example,

1st page <- visitor lands on site (pop-up window display)
2nd page <- nothing happens
3rd page <- (a different pop-up window display)

Is there a way to do this?

Thanks for your time. Much appreciated.

10:40 am on Jan 9, 2003 (gmt 0)

Preferred Member

10+ Year Member

joined:May 15, 2001
posts:462
votes: 0


Shouldn't be a problem - just use something like a cookie to track how many pages they've been to - each time they go to a new page increment the value stored in the cookie.
10:46 am on Jan 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 5, 2001
posts:2466
votes: 0


you could use a session variable and header.inc on each page to trigger the pop on odd numbers or 1,3,10,15,20

DaveN

10:49 am on Jan 9, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 2, 2002
posts:1099
votes: 0


Could you kindly provide some sample codes? Session isn't exactly my forte.
5:36 pm on Jan 9, 2003 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15755
votes: 0