Es mi 3er clase en PHP, y dimos un poco de if y else y el código que escribiste solo imprime el resultado.
Pero yo tengo que ingresar las horas y que me devuelva el salario a cobrar, creo que puedo hacerlo mediante $_POST tenia en mente el siguiente código
Código
<!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>Calcular Salario</title> </head> <body> <h1>Calculo del sueldo</h1> <form action="respuesta.php" method="post"> <table width="317" border="1"> <tr> <td>ingrese las horas</td> <td><input type="text" name="horas_trabajadas"/></td> </tr> <tr> <td><input type="submit" value="Enviar" title="Enviar"/></td> </table> </form> </body> </html>