Hello so I have this form with 3 checkbox:
<form action="send.php">
<input type="checkbox" name="txt_group" value="CID">CID
<input type="checkbox" name="txt_group" value="OSDS">OSDS
<input type="checkbox" name="txt_group" value="SGO">SGO
<input type="submit">
</form>
And in my send.php I have this code:
$stmt = $dbc->query("SELECT * FROM tblcontactlist WHERE contactGroup=:cgroup");
$stmt->bindParam(':cgroup', $_POST['txt_group']);
$stmt->execute();
I think that if I check only 1 checkbox, this will work. But what if I select 2-3 checkbox? Will this query still work?