homepage Welcome to WebmasterWorld Guest from 107.20.25.215
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

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




msg:1312801
 10:03 am on Jan 9, 2003 (gmt 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.

 

Robber




msg:1312802
 10:40 am on Jan 9, 2003 (gmt 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.

DaveN




msg:1312803
 10:46 am on Jan 9, 2003 (gmt 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

irock




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

Could you kindly provide some sample codes? Session isn't exactly my forte.

jatar_k




msg:1312805
 5:36 pm on Jan 9, 2003 (gmt 0)

check out Session Handling Functions for PHP [php.net]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved