versão 6 aprimorada

This commit is contained in:
Flatlogic Bot 2025-11-20 23:17:46 +00:00
parent 5cd527302b
commit 21e017feae

View File

@ -8,9 +8,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$technician_name = trim($_POST['technician_name'] ?? '');
$observations = trim($_POST['observations'] ?? '');
$status = trim($_POST['status'] ?? 'ativo');
$voltage = trim($_POST['voltage'] ?? null);
$phase_neutral_ground = trim($_POST['phase_neutral_ground'] ?? null);
$breaker_output = trim($_POST['breaker_output'] ?? null);
$voltage = !empty($_POST['voltage']) ? trim($_POST['voltage']) : null;
$phase_neutral_ground = !empty($_POST['phase_neutral_ground']) ? trim($_POST['phase_neutral_ground']) : null;
$breaker_output = !empty($_POST['breaker_output']) ? trim($_POST['breaker_output']) : null;
// Validation removed to allow incomplete forms