Saturday 22 September 2012

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() 

Share This!



No comments:

Post a Comment

Here We Write The Problems we face at different situations and Solutions to those problems.