Hi All,
I am trying to send some data using Ajax and recieve that data in php code using _POST method.
But my data contains "&" and _POST method takes it as a seperating token and data after tht does not get passed. Does anyone has a solution to this.
Code snippet:
params = "q="+str+"&p="+str1; //here str1 contains data which has &
xmlHttp.open("POST",url,false);
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlHttp.send(params);
And on server side when I use $posted = &$_POST ;
it takes & as a seperator which is present as data.
Please someone let me know the workaround or approach to this.