here i have variable fileVal takes path of file like uploads/import/abc.pdf
var fileVal = $('#fileimport').val();
here fileVal takes path of file like uploads/import/abc.pdf
i have to send this file path as url variable to a php file and then display result on messagediv. like
$('#messagediv').load('../xyz.php?file='+fileVal);
here without url variable, its working perfect getting values to the messagediv.
But where as using url variable its not.
How i can solve this?
...xyz.php?path=uploads-import&filename=abc.pdfthen construct the url in xyz.php by replacing the dashes of the path with forward slashes and adding the filename at the end