when i run this code it already says checked even if I haven't submitted any thing.. any help?? why the if statement isn't working
<?php
if ( isset ( $_POST['roll'] ) && !empty($_POST['roll'])){
echo 'checked' ;
}
?>
<form action = 'test.php' method = 'POST'>
<input type = 'submit' name = 'roll' value = 'roll dice.'>
</form>