[KLUG Members] visited link as a variable

Bruce Smith bruce at armintl.com
Fri Dec 3 07:23:50 EST 2004


> > Is there a way to utilize a:visited in such a way to make it a variable 
> > on a php page.
> > i.e.
> > if (a:visited=false) {
> > 	show this secondary graphic
> > } else {
> > 	show this primary graphic
> > }
> 
> Possibly, but it will never be reliable.  Browsers are too flakey about such
> things.
> 
> Use sessions to track what links a visitor has visited.  You should just be able
> to store an array in the session, and check the visited status in your loop.
> 
> See the documentation for session_start and session_register.

Or you could keep it really simple and include some small text, 
inside the link, next to each picture.   :-)

 - BS




More information about the Members mailing list