Alright, read the posting guidelines. I guess i was just really eager to find a solution. My apologies.
My site is http://www.pottysurfing.com. There is a submission link and a map link. Here is the code for the submit.php file: <?php $key = "ABQIAAAA9L2493v1nHPEYBelQXH_JRR5jRJtvouLlBAazMw9rcwvlKgKThT4- TDWp1CTJrPsudIfRsTKK95iYQ"; $name = $_POST['name']; $address = $_POST['address']; $city = $_POST['city']; $state = $_POST['state']; $comment = $_POST['comment']; $gender = $_POST['gender']; //echo "$address"; // echo "$city"; // echo "$state"; // echo "$comment"; $mapaddress = urlencode("$address $city $state"); //echo $mapaddress; $url = "http://maps.google.com/maps/geo?q=$mapaddress&output=xml&key= $key"; $page = file_get_contents($url); $xml = new SimpleXMLElement($page); list($longitude, $latitude, $altitude) = explode(",", $xml->Response->Placemark->Point->coordinates); mysql_connect ('localhost', 'xxxx', 'xxxxxxxxx') or die ('Error: ' . mysql_error()); mysql_select_db ('maps'); $query="INSERT INTO markers (id, name, address, city, state, comment, gender, lat, lng)VALUES (NULL,'$name','$address','$city','$state','$comment','$gender','$latitude','$longitude')"; mysql_query($query) or die ('Error updating database!' . mysql_error()); //echo "Database Updated"; header('location: success.html'); exit(); // echo "latitude: $latitude, longitude: $longitude <br />"; // echo "$url"; ?> Obviously i've removed the login and password information for my database. I hope this is enough to help anyone out there help me. Regards, Kevin Cornett On Sep 7, 6:22 pm, "maps.huge.info [Maps API Guru]" <[EMAIL PROTECTED]> wrote: > If every location is off, then obviously you have a problem, what it > is though can't possibly be determined from the information supplied. > > Please read and follow the posting guidelines, they are there for a > good reason and this is a perfect case. Also, you might want to read > the FAQ, which may answer your question too. > > -John Coryat > > http://maps.huge.info > > http://www.usnaviguide.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
