I have the following form that I create with PHP:
echo '<form name="frmCalificar" method="post" action="calificar.php">';
echo '<br>Calificacion:<input type="number" name="txtCalificacion" required/><br>';
echo '<p>Observacion:</p><textarea name="txtObs" rows="5" cols="21" ></textarea><br>';
echo '<input type="submit" class="btn btn-danger" name="btnRechazar" value="Rechazar">';
echo '<input type="submit" class="btn btn-success" name="btnAceptar" value="Aceptar">';
echo '</form>';
As you can see in the code the qualification space is required at the time of submitting the form, but I only want it to be required when clicking on the accept button, when rejecting it, that field is not required, is there any way to do this? that at the time of pressing the button accept if the qualification field is blank ask me, but by clicking on reject the form can be sent without being forced to put something in qualification.
note: for the 2 buttons you must save the comment field, but without being required