![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
20/12/2013, 09:38
|
| | Fecha de Ingreso: diciembre-2013
Mensajes: 4
Antigüedad: 11 años, 1 mes Puntos: 0 | |
Respuesta: Ejercicio muy difícil para empezar le he cambiado el tema a ver si de esta manera lo veo mejor y por lo menos ya carga o persiste, poco a poco
<?php
$horario[]=$_POST['horario'];
$horario[]="Hora";
$horario[]="Lunes";
$horario[]="Martes";
$horario[]="miercoles";
$horario[]="Jueves";
$horario[]="Viernes";
$horario[]=$_POST['hora'];
$horario[]=$_POST['lunes'];
$horario[]=$_POST['martes'];
$horario[]=$_POST['miercoles'];
$horario[]=$_POST['jueves'];
$horario[]=$_POST['viernes'];
print_r($horario);
?>
<!doctype html>
<html>
<body>
<form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
Hora<input type="number" name="horario[]"><br>
Lunes<input type="text" name="horario[]"><br>
Martes<input type="text" name="horario[]"><br>
Miércoles<input type="text" name="horario[]"><br>
Jueves<input type="text" name="horario[]"><br>
Viernes<input type="text" name="horario[]"><br>
<input type="submit" value="enviar">
<?php foreach ($horario as $lomanda): ?>
<input type="hidden" name="horario[]" value="<?php echo"<td>" .$lomanda. " </td>";?>">
<?php endforeach; ?>
</form>
</html> |