Decrease a variable by one when the user leaves the page?
Posted on 2004-10-01
How can decrease a variable by one when the user leaves the page?
$visitors=$visitors + 1;
echo "Current Session Users: " . $visitors;
Adds 1 to the file when the user comes to the page, but how do i set $visitors relative to -1? Any help would be much apreciated.