I'm looking for a script that when a viewer looks at the page it will add one to the previous number that there was. Mainly refreshing, it will add a number. I also need it to clear when you leave the page. Maybe sessions? I know php well, but I cant seem to get this. I know I need something like $email + 1 = $emails idk something like that but it never works.. just takes it and adds one and then thats it.. doesnt keep adding, I also need to be able to have more than one counter on the same page. Maybe having the counter name as a random integer, something like that. I'm thinking.
Code:
<?php
$email = "1";
$emails = $email + 1;
echo $emails;
?>
something like that to just keep adding one from on...over and over and then clear when the page is closed, or when you click a button. maybe make it redirect and then before it redirects clears the thing, or assigns a new id for the counter and then clears all the counters when you close the page.
MSN/Email:
jomar@carolina.rr.com