<head><title> Mi Rol de Pago </title></head>
</body>
<form method="get" action="Total a Pagar.php">
<li><h4> Nombre del Empleado: Pedro Gonzales</h4>
<li><h4> Cargo: Digitador</h4>
</li>
<table>
<tr><td> Sueldo s; </td><td> <center = "1"> </center> <input type="text" ></td></tr>
<tr><td> Horas Extras h ; </td><td> <input type="text" name="b" > </td></tr>
<tr><td> Aporte a ESS a; </td><td> <input type="text" name="c" > </td></tr>
<tr><td> Prest. Ant. Empresa p; </td><td> <input type="text" name="c" > </td></tr>
<tr><td colspan="2"><center><input type="submit" value="calcular"></center></td></tr>
</table>
</form>
</body>
</html>
<?php
$s=$_GET["s"];
$h=$_GET["h"];
$z=$s+$h;
$a=$_GET["a"];
$p=$_GET["p"];
$x=$a+$p;
echo"<table border="1"><tr><td>Total de Ingresos ES:</td><td>";
echo "$z";
echo "</td></tr></table>";
echo"<table border="1"><tr><td>Total de Descuentos ES:</td><td>";
echo "$z";
echo "</td></tr></table>";
?>
Total de Ingresos es: 460 |
Total de Descuentos es: 60 |