if( move_uploaded_file($_FILES["imagefiles"]["tmp_name"],$path)){
        header("location:index.php?=file-inserted&name=".$rename);
          }
yapmaya çalışıtığım şey bu gönderdiğim parametreyi almak bu şekilde deneme yapıyorum
if(isset($_GET["file-inserted"])){
    echo 'eklendi';
}
ama eklendi yazısı gözükmüyor acaba neyi yanlış yapıyorum.Kodun tamamı aşağıda
if(isset($_POST["upload"])){
    if($_FILES["imagefiles"]["name"]!=""){
        $allwod=["jpeg","png","jpg"];
        $ext=explode(".",$_FILES["imagefiles"]["name"]);
        $ext=end($ext);
       if(in_array($ext,$allwod)){
           $rename=md5(rand()).".".$ext;
           $path="images/".$rename;
          if( move_uploaded_file($_FILES["imagefiles"]["tmp_name"],$path)){
             header("location:index.php?=file-inserted&name=".$rename);
          }
       }
     }else{
        echo '<script>alert("No File")</script>';
}
}
?>
    Document 
    <script>        src="https://code.jquery.com/jquery-3.3.1.js"
        integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
        crossorigin="anonymous"></script>
    
    
    
    
    
    <script></script>
if(isset($_GET["file-inserted"])){
    echo 'Inserted';
}
?>
    
        
    
 
  

 
                    
