diff --git a/app/controllers/registro.php b/app/controllers/registro.php index c69c075..cac6fbf 100644 --- a/app/controllers/registro.php +++ b/app/controllers/registro.php @@ -57,17 +57,17 @@ function enviar() { $conn = getConnection(); - $empresa = encrypt($_POST['company_name'] ?? ''); - $rfc = encrypt($_POST['rfc'] ?? ''); - $email = $_POST['email'] ?? ''; - $telefono = $_POST['phone'] ?? ''; - $archivo = $_FILES['opinion_file']; + $empresa = encrypt($_POST['company_name'] ?? ''); + $rfc = encrypt($_POST['rfc'] ?? ''); + $email = $_POST['email'] ?? ''; + $telefono = $_POST['phone'] ?? ''; + $archivo = $_FILES['opinion_file']; - // Validar archivo - if ($archivo['error'] !== 0 || pathinfo($archivo['name'], PATHINFO_EXTENSION) !== 'pdf') { - die("Archivo inválido. Solo se permiten PDFs."); - } - + // Validar archivo + if ($archivo['error'] !== 0 || pathinfo($archivo['name'], PATHINFO_EXTENSION) !== 'pdf') { + die("Archivo inválido. Solo se permiten PDFs."); + } + // Guardar archivo $nombreArchivo = uniqid() . '_' . basename($archivo['name']); diff --git a/views/registro/form.php b/views/registro/form.php index aa60537..64dc7cf 100644 --- a/views/registro/form.php +++ b/views/registro/form.php @@ -129,7 +129,7 @@ $color2 = explode(',', $config['colores_primarios'] ?? '#003366,#0055A5')
- +
@@ -144,7 +144,7 @@ $color2 = explode(',', $config['colores_primarios'] ?? '#003366,#0055A5')
- +