Before Ajax i used simple form with some text input and files, but in ajax php throws error that files are not defined. https://jsfiddle.net/wkLvh8rj/ here is addtodata.php file
if(isset($_GET['name']) &&
isset($_GET['ad']) &&
isset($_FILES['pic1']) &&
isset($_FILES['pic2']) &&
isset($_FILES['pic3']) &&
!isset($_GET["web"]) &&
!isset($_GET["mob"]) &&
!isset($_FILES["pic"]))
{echo "working";}
else{echo "not working";}
So what i'm doing wrong? or what i'm missing?