I am using Goole Maps and want to include 2 javascript variables with a form post (longitude and latitute of the marker). Here's what I have:
function saveData() {
var name = escape(document.getElementById("name").value);
var address = escape(document.getElementById("address").value);
var type = document.getElementById("type").value;
var latlng = marker.getLatLng();
var lat = latlng.lat();
var lng = latlng.lng();
I need to include "var lat" and "var lng" with an existing form post.
<form id="form1" name="form1" method="post" action="catchprocess.php">
Thanks for any help you con provide!