Can anyone please teach me how do I get the 'count' from click.php and pass into the '$clicked' of clickcount.php ?
Thank you so much for helping ^.^
cllick.php
PHP Code:
<script type="text/javascript">
var count = 0;
function countClicks() {
count = count + 1;
document.getElementById("clicks").innerHTML = count;
}
</script>
clickcheck.php
PHP Code:
<?php
$click = '?????'; // I don't know how should i define this
if(!isset($clicked) || empty($clicked)) {
die("No click is counted.");
header = ('login3.php');
} else if ($clicked > $content || $clicked < $content){
die("Click count(s) is not correct!");
header = ('login.php)';
} else {
die("Login success.");
header = ('welcome.php');
}
?>