<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form action="<?= base_url() ?>staff_update1" method="post" enctype="multipart/form-data">
        <input type="hidden" name="id" value="<?php echo $user['id']; ?>">
        Staff name: <input type="text" name="staff_name" value="<?php echo $user['name']; ?>"><br><br>
        Designation: <input type="text" name="designation" value="<?php echo $user['designation']; ?>"><br><br>
        Salary: <input type="text" name="salary" value="<?php echo $user['salary']; ?>"><br><br>
        image: <img src="<?= base_url('uploads/' . $user['photo']) ?>" height="200px" width="250px">
        <input type="file" name="photo">
        <button type="submit">click</button>
</body>

</html>