How to populate input type file value from database in PHP?

前端 未结 3 1765
名媛妹妹
名媛妹妹 2021-01-23 03:58

I am writing the code for editing a form that contains an input file field. I am getting all the values pulled from database for different field types but the file type input do

3条回答
  •  天命终不由人
    2021-01-23 04:30

    You can just make value field empty and show your old image at just up of that input field(or below).then check after submitting form, if $_POST['userfile'] is empty don't update table.picture_name.

提交回复
热议问题