public function editSupplier() { $id = $_POST['id']; $name = $_POST['name']; $email = $_POST['email']; $contact = $_POST['contact']; require 'models/Stocks_model.php'; $model = new Stocks_model(); if ($model->editSupplier($id, $name, $email, $contact)) { echo "Success"; } }