prepare( 'INSERT INTO expense_reports (agent_name, amount, description, status) VALUES (?, ?, ?, ?)' ); $stmt->execute([$agent_name, $amount, $description, 'Pending']); $success_message = 'Expense report submitted successfully!'; } catch (PDOException $e) { // In a real app, you would log this error, not show it to the user. $error_message = 'Database error: Could not submit the report.'; } } } ?> Submit Expense Report

Submit New Expense Report