I want to verify if my checkbox is checked in php and if it is, i want to echo "Hello word". Here is my html code :
<form class="checkclass">
<input type="checkbox" name="checkbox1"> 4K </input>
</form>
php :
<?php
if (isset($_POST['checkbox1'])) {
echo "Hello world!";
}
?>
But it doesn't work and i really don't know how to fix this. Can someone please help me ?