You should only use the attribute readonly, not disabled. Check thisCheck this
- readonly: input can't be modified
- disabled: input has no form function
And also check form input is isset, like below:
$avatar = null; if(isset($_POST['_ava'])) { $avatar = $_POST['_ava']; }