I'm starting in this PHP and I created this little form.
Whenever I give it when calculating clean the text boxes, it works OK, but I would like you not to clean the text boxes.
This is my HTML.
<form action="index.php" method="post">
<table>
<tr>
<td>Evaluación Aplicativa</td>
<td align="center"><input type="text" name="txtApli" id="txtApli" size="3"></td>
</tr>
<tr>
<td>Examen Parcial</td>
<td align="center"><input type="text" name="txtParcial" id="txtParcial" size="3"></td>
</tr>
<tr>
<td>Examen Final</td>
<td align="center"><input type="text" name="txtFinal" id="txtFinal" size="3"></td>
</tr>
This is my PHP.
<?php
if (!empty($_POST)){
$Apli = $_POST['txtApli'];
$Parcial = $_POST['txtParcial'];
$Final = $_POST['txtFinal'];
if (empty($Apli)){
echo "Ingrese el porcentaje de Evaluación Aplicatica<br>";
$valida = false;
}
if (empty($Parcial)){
echo "Ingrese el porcentaje de Examen Parcial<br>";
$valida = false;
}
if (empty($Final)){
echo "Ingrese el porcentaje de Examen Final<br>";
$valida = false;
}
}
?>