[KLUG Members] visited link as a variable

Adam Tauno Williams adam at morrison-ind.com
Fri Dec 3 03:10:55 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.


More information about the Members mailing list