Check if specific input file is empty

后端 未结 11 746
醉酒成梦
醉酒成梦 2020-11-29 07:23

In my form I have 3 input fields for file upload:





        
11条回答
  •  感情败类
    2020-11-29 07:35

     if( ($_POST) && (!empty($_POST['cover_image'])) )    //verifies  if post exists and cover_image is not empty
        {
        //execute whatever code you want
        }
    

提交回复
热议问题