<?php require_once '../../models/Suppliers.php'; if (isset($_POST['id'])) { $row = $_POST; $response = Suppliers::Update($row); if ($response === true) { header("Location: index.php"); } } else { $row = Suppliers::Get($_REQUEST['id']); } ?> <!DOCTYPE html> <html lang="en"> <?php include '../../inc/head.php'; ?> <body> <div> <?php include '../../inc/nav.php'; ?> <div id="content"> <?php if (isset($response)) { ?>