I have the following form:
<!-- Comments Form -->
<div class="card my-4">
<h5 class="card-header">Deixar um comentário</h5>
<div class="card-body">
<!-- Comentar -->
<form method="post">
<input type="hidden" name="telefone" value="<?php echo $_GET['aluno']; ?>">
<div class="form-group">
<label class="control-label">Nome</label>
<input name="nome" type="text" class="form-control" required placeholder="Nome">
</div>
<div class="form-group">
<label class="control-label">Classificação</label>
<select name="classificacao" class="form-control">
<option>Usuário?</option>
<option value="1">1</option>
</select>
</div>
<div class="form-group">
<label class="control-label">Comentário</label>
<textarea name="comentario" class="form-control" placeholder="Comentario"></textarea>
</div>
<div class="form-group">
<input type="submit" class="btn btn-success" value="Enviar comentário">
</div>
</form>
</div>
</div>
I'd like to add a field with a sum to prevent SPAM.
Ex: How much is 2 + 3? if the answer is 5 lets send the comment, otherwise the comment is not sent.