How can i check array input type file is empty before upload data in database. if have one empty show anything that user understand and don't updata data.
This is example code html
<h3>Extra profile information</h3>
<table class="form-table">
<tr>
<th><label for="Upload">Upload</label></th>
<td>
<form action="" method="post">
<input name="profile_photo[]" type="file" value="" />
<input name="profile_photo[]" type="file" value="" />
<input name="profile_photo[]" type="file" value="" />
<br/>
</form>
</td>
</table>
I used to use $x=$_GET['profile_photo']; and echo $x; before upload to database and it return empty or null.
$_FILESarray for count.$x=$_POST['profile_photo'];?enctype="multipart/form-data"to yourformtag too