[eluser]boony[/eluser]
Quote:Of course you'll need to change 'phpsqlinfo_addrow.php' to the name of the controller/method in your CI app
You can then use $this->uri->uri_to_assoc(n) to return the segement as an associative array of key/value pairs.
Hope that helps!
Thanks eoinmcg,
I've been playing with this for hours and am now totally confused ( wots new I hear

).
I'm trying to get back to the controller and am using this (which doesn't seem to work)
Code:
var url = "<?=site_url('mapapp/test_form'); ?>/fname/" + fname + "/lat/" + latlng.lat() + "/lng/" + latlng.lng();
Does that look ok?
Also, I suspect there may be a problem in getting the JavaScript onclick to work. This is the script that is supposed to get the marker position...does CI need to do this differently???
Code:
var map = new google.maps.Map(document.getElementById("map_canvas"), options);
var html = "<table>" +
"<tr><td>Name:</td> <td><input type='text' id='fname'/> </td> </tr>" +
"<tr><td></td><td><input type='button' value='Save & Close'></td></tr>";
infowindow = new google.maps.InfoWindow({
content: html
});