The value of the post parameter is a path. when it is uploaded to the backend, the backslash is filtered out. how can this problem be solved? Ask rt, the code is as follows $. post (& quot; localhostglindex. php? The value of the imgUrlglcmodulesmod_glc_resultsassetsjsflashuploadsavedimage2012061402012-06-14-post parameter is a path, and the backslash is filtered out when it is passed to the backend. how can this problem be solved?
Ask rt. the code is as follows:
$. Post ("http: // localhost/gl/index. php? ImgUrl = glc/modules/mod_glc_results/assets/js/flashupload/saved/image/2012061402012-06-14-15-33-34_87618_thumb.jpg "). done (function (){});
$ _ Post ["imgUrl"] in backend php gets a string without a backslash: glcmodulesmod_glc_resultsassetsjsflashuploadsavedimage2012061402012-06-14-15-33-34_87618_thumb.jpg
Ask the elders what knowledge I lack to learn to solve this problem? (In addition, the method of replacing the backslash with special characters has been nearly tested and won't work)
------ Solution --------------------
Discussion
On the JS end, you Urlencode glc/modules/mod_glc_results/assets/js/flashupload/saved/image/2012061402012-06-14-15-33-34_87618_thumb.jpg; otherwise, it will be treated as pathinfo.