I want to create a checkbox and check whether checkbox is checked or not in another PHP page so I created form like : 

```
 <form action="heartbeat.php" method="post">
    <input type="checkbox" name="keepme">
    <input type="submit" value="log in">
    </form>

```

and then I tried to extract this input on heartbeat.php like: 

```
 <?php
    /*
    * A PHP file for laying down a heartbeat JavaScript call.
    */
    if(!isset($_POST["keepme"])){
    $auto_logout = 10;
    }
    else{
    $auto_logout = 1000;
    }
    ?>   

```

but it never gets `$_POST["keepme"]` value. Any idea??