I have some problems here:
I have index.html, that contains upload file feature
I have cleaning.php, it will cleaning every string in a file
So, what I want is if I run index.html then upload a file, at that time it will execute cleaning.php and return the clean file to index.html How can I do that? Need your help :(
This is my index.html file:
 <script>
 $(function testing (data) {
    $("#upload").bind("click", function () {
       // I want to pass this array to cleaning.php
       $someArray[] = "stringFromCSVFile"; // must pass to cleaning.php
  });
 </script>
This is my cleaning.php file:
$array = csvToArray("filecsv.csv"); //convert uploaded file to array
callFuncA($array);
functionA($array){
   return $something;
}
 
     
    