diff --git a/ver_formulario_enviado.php b/ver_formulario_enviado.php index 086f392..c6c206e 100644 --- a/ver_formulario_enviado.php +++ b/ver_formulario_enviado.php @@ -642,15 +642,31 @@ function esc2(mixed $v): string { diff($bday)->y; + } + } + // texto, numero, fecha, hora, y calculados → input $inputType = match($tipo) { - 'numero' => 'number', 'fecha' => 'date', 'hora' => 'time', default => 'text' + 'numero', 'edad' => 'number', + 'fecha', 'fecha_hoy' => 'date', + 'hora' => 'time', + default => 'text' }; ?>
> + name="" value="" + >
diff(new DateTime($fnac))->y; + } + } } else { $valor = $todos[$cid] ?? null; }