After I click on submit how can I get the count of of how many "Yes" were picked or how many "No" were Picked using PHP
while($row = mysqli_fetch_array($result))
{
$i++;
?>
<p><?php echo $row["question"] ; ?></p>
<input type="radio" name="<?php echo $row["question"].$i ; ?>" value="Yes">
<label for="Yes">Yes</label>
<input type="radio" name="<?php echo $row["question"].$i ; ?>" value="No">
<label for="Bo">No</label>
<?php
}
?>
</div><br>
<input type="submit" name="submit" value="Submit">
</div>
</form>
<?php
if(isset($_POST['submit'])){
//count
}