When I press okay, everything works fine so far. But when I press cancel, it does the exact thing that if I pressed okay...what's wrong with my code? :/

```
<?php if(isset($_POST['supprimer'])) { ?>   
    <script>var r = confirm('Etes-vous sur de vouloir supprimer?');
    if(r == true) { <?php $object->supprimer($_POST['rowID']); ?> 
    }</script> 
    <?php } ?>

```