Dear all,

I need help...

I'm developing a site where the user can zoom in on a google map to find out more about a certain location and experiences that other users have uploaded. (

You can view a working version of the map, although without a working solution for the checkboxes at:

The users have uploaded different types of experiences, such as Sun & Beach, City, Cruise...etc... I would now like to add functionality so the user can choose which types of experiences that they would like to see on the map. This is done via checkboxes. The user click the checkboxes for city and cruise and the hits the submit-button.

The function below calls the phpsqlajax_genxml2.php-file which holds the actual SQL-statement for the selection for which pictures to display. I would like to send the parametres of which checkboxes that have been selectec to the phpsqlajax_genxml2.php-file and then include the parametres into the Select-statement to select wished pictures.

      function initialize() {
        	if(GBrowserIsCompatible()) {
          map = new GMap2(document.getElementById('map'));
          map.setCenter(new GLatLng(30.178868, 116.38), 1);
          map.addControl(new GLargeMapControl());
          var icon = new GIcon(G_DEFAULT_ICON);
          icon.image = ",008CFF,000000&ext=.png";
          GDownloadUrl("phpsqlajax_genxml2.php?sunbeach="+document.showtype.sunbeach.value[0].checked"&bogus="+(new Date()).getTime(),processMyData); //Calls the xml-data and sends it to processMYyData-function
I've added:

And I had hoped that this line should include the value of the checkbox but I only get javascript-errors and I can not figur out what's wrong.

The actual form:

echo '<form id="showtype" action="'.$_SERVER['PHP_SELF'].'" method="post" enctype="multipart/form-data">
	<input type="checkbox" style="cursor:hand" name="sunbeach" id="sunbeach" value="sunbeach"/>
<label for="var">Sun & Beach</label><br />	
<input class="submit" type="submit" name="showtype" value="Show Type" />
Any help and suggestions are welcome!

Thank you,