 <div class="mb-3">
  <input name="lot" class="form-control" value="<?php echo $_POST['lot']; ?>">
</div>

 <div class="mb-3">
  <input name="prod" class="form-control" value="<?php echo $_POST['prod']; ?>">
</div>

<div class="mb-3">
  <label class="form-label">Foto</label>
  <input type="file" name="foto" class="form-control" >
</div>