0

I have create a form to edit the image and already get the data from database. But it doesn't have the initialize value of that slider.

Here is the code :

<fieldset class="form-group">
    <label for="formGroupExampleInput2">Upload image</label>
    <img src="<?=$value['slider_link']?>" alt="<?=$value['slider_name']?>" style="width: 90%;">
    <input name="file" type="file" class="form-control" id="file" value="<?=$value['slider_link']?>">
</fieldset>

theresult

As you can see, the image was loaded. But the value inside the input wasn't call. It suppose to have Database.png into the input.

How can I fix this?

someoneuseless
  • 303
  • 3
  • 17

1 Answers1

0

We can't initialized the input file. moreover you if you want the file name on submit you can store it onto the hidden variable.

Somnath Rokade
  • 655
  • 1
  • 9
  • 27