I have a page sending data to .php page to insert it into db. The code is as below.
var stringInput = "gName="+gName+"&gDescription="+gDescription+"&gPreference="+gPreference;
GDownloadUrl("insertPage.php", checkSaveGeoFenceData,stringInput,"application/x-www-form-urlencoded");
Only problem we are facing now is that for instance the gName itself have & sign as part of the information and only the part before & gets into the db. Any resolution for this?
You need to use
urlencode()as likeTo
decode it afterwardin your phpEDIT
If this is in javascript, then