-
-
Save parzibyte/22a39b6fbf305ddd8e4b376950b7b724 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<?php | |
// Estos usuarios deberían venir de su base de datos. Aquí solo los pongo como ejemplo | |
$usuarios = [ | |
[ | |
"id" => 1, | |
"nombre" => "Luis" | |
], | |
[ | |
"id" => 2, | |
"nombre" => "Juan" | |
] | |
]; | |
?> | |
<body> | |
<form action="guardar_turno.php" method="post"> | |
<select name="id_usuario"> | |
<?php foreach ($usuarios as $usuario) { ?> | |
<option value="<?php echo $usuario["id"] ?>"><?php echo $usuario["nombre"] ?></option> | |
<?php } ?> | |
</select> | |
<p>Hora de entrada:</p> | |
<input type="time" name="entrada" required> | |
<p>Hora de salida:</p> | |
<input type="time" name="salida" required> | |
<button type="submit">Ok</button> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment