Fixed a bug where POST data wasn't being recognized by the server-side code
This commit is contained in:
@@ -42,7 +42,8 @@ function callbackFunction(position) {
|
||||
request.send();
|
||||
} else if (method == "POST") {
|
||||
request.open("POST","/checkloc.php");
|
||||
request.send("latitude=" + encodeURIComponent(lat) + "&longitude=" + encodeURIComponent(long));
|
||||
request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
request.send("latitude=" + encodeURIComponent(lat) + "&longitude=" + encodeURIComponent(long) + "&glink=" + encodeURIComponent(glink));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user