hola miren kisiera crea una tabla dinamica ke pida numero de empleados y genere nombre de empleado;sueldo;tiempo extra aki esta lo ke tengo.
//ESTE PIDE NUMERO EMPLEADOS
<html>
<head>
<title>Sans Titre</title>
</head>
<body bgcolor="#FFFFFF">
<center><h1> Generacion de Tablas Dinamicas </h1>
<form action="planilla.php" method="post">
<p>numero empleados:<input type="text" name="nem" size="6" />
<center><input type="submit" name="btnEnviar" value="Enviar" />
<input type="reset" name="btnCancelar" value="Cancelar" />
</body>
</html>
//ESTE HACE LA TABLA CON LOS INPUTS
<html>
<head>
<title>Sans Titre</title>
</head>
<body bgcolor="#FFFFFF">
<?
$empleados = $_POST["nem"];
for($a=0; $a<=$empleados;$a++)
{
"<input name$a><br>";
}
for($s=0; $s<=$empleados;$s++)
{
"<input name$s><br>";
}
for($i=0; $i<=$empleados;$i++)
{
echo"<table border>
<tr>
<th>empleados</th><th></th><th>sueldo</th><th></th><th>extra</th>
</tr>
<tr>
<td><input name$i><td><td><input name$a><td><td><input name$s><td><br>
</tr>";
}
?>
</body>
</html>
ahora debo calcular el sueldo+ la hora extra supuestamente debo usar los input para calcular pero no se como alguna sugerencia.