I need a php code sniplet that will increment a variable everytime a submit button is clicked. Another words it needs to count +1 everytime the submit is clicked. Thanks in advance.
Need Some PHP help from the gurus
Collapse
X
-
Thanks for the help
Your suggestion gave me an idea that worked fine, thanks used the following:Originally posted by dissipateyou can use a mysql database to track thier IP, resetting it each day
if ($submit) {
$_SESSION[$accountselnum] = $_SESSION[$accountselnum] + 1;
}else {
$_SESSION[$accountselnum] = 0;
}Comment
-
just remember that if that guy clicks, then goes to the page without clicking, that will reset his click count ... dunno if that matters to you but figured I'd say it anyway :POriginally posted by JSWENSONYour suggestion gave me an idea that worked fine, thanks used the following:
if ($submit) {
$_SESSION[$accountselnum] = $_SESSION[$accountselnum] + 1;
}else {
$_SESSION[$accountselnum] = 0;
}TGP Webmasters: sign up for the top 100 tgp list!
Submit galleries
If you add me to icq (title) make sure to mention GFY or I'll think you're a bot and deny you.Comment


Comment