I have an AJAX code;
<script>
function copy_file() {
    $.ajax({
        url: 'copy.php',
        success: function(data) {
        if (data == 'true') {
            alert('The file has been copied');
        }
    }
});        
</script>   
Below, my PHP code;
<?php
function copyFile($test_image, $base_image) {
    copy($test_image, $base_image);          
}
?>
And here, my HTML code;
<label><input type="button" name="button" value="copy files" onclick= copy_file('c:\path1','c:\path1')">
How can pass multiple values (by values, I mean path) from AJAX to PHP?
What am I doing wrong and how can I fix it?
 
     
    