Forum Moderators: mack
Any ideas on how to get that count?
I was thinking a hidden page counter might be close, but it wont count actual button presses and it would have to count each hit the page is reloaded for the forms script. If this is the way to go, any good counters that can provide daily logging?
Thanks.
Wait! The more I think of it, you should be able to use your log records(stats) to check the hits on the file that processes the form. Look at the source code of the form page and in the <form> tag you'll see the action="" attribute. That'll be the file to look for in your stats.
<script type="text/javascript">
function logClick(){
URL = "/example.gif";
webBug = new Image();
webBug.src = URL;
return true;
}
</script>
Then in the <form> tag add this:
onsubmit="return logClick();"
So it will look something like:
<form action="" method="post" onsubmit="return logClick();">