Possible Duplicate:
pass a js variable to a php variable
I have this code
{
var lat = position.coords.latitude;
var lng = position.coords.longitude;
alert("Current position: " + lat + " " + lng);
}
I want to post the alert to a php variable like this
$location = above result
How can i accomplish this? Thank you