I've been trying to create 2 radiobuttons to set tasks to complete or not complete but the value of the radiobuttons is passed to the variable
<?php
echo "<form method='post'>";
echo 'Completed:';
echo "<input type='radio' name='complete' value='1'>";
echo 'Yes';
echo "<input type='radio' name='complete' value='0'>" ;
echo 'No';
echo '</form>';
if (isset($_POST['complete'])){
$complete_btn= $_POST['complete'];
echo $complete_btn;
?>
}
What im trying to do is bold the tasks that have been marked as completed but for some reason i cannot get the value from the buttons.
(im a complete beginner btw so sorry if it's a stupid question).