So when a user creates an account and they have to tick the checkbox to proceed which works, but how do I store that they accepted it (even though they cannot make an account without accpecting it). But we want to store it nonetheless.
Checkbox
<input type="checkbox" name="agree" value="accepted">
PHP
if ($_POST['agree'] != 'accepted') {
$error[] = 'Please indicate that you have read and agree to the Terms and Conditions and Privacy Policy';
} else {
$stmt = $db->prepare('SELECT termsAccepted FROM members WHERE termsAccepted = :??????');
$stmt->execute(array(':??????' => $?????));
$row = $stmt->fetch(PDO::FETCH_ASSOC);
}