Sunday, September 23, 2012
2:20 AM

Send ajax post which contains '&' to PHP

Send '&' through Ajax Post method to PHP File
 
var strnew = encodeURIComponent("My & My");
 
Now At PHP Side no need to any thing
If problem in PHP Side reading data try below functions
urlencode()
urldecode() 

0 comments:

Post a Comment