> OK I tried creating an onsubmit=toggleSearch() function which > connected to the php script I wrote (via GDownloadURL()) but it seems > that it won't recognize the $_POST['field'] in my $query line. > > Is there somewhere in my search.php script that I have to specify > which FORM to connect to or does it automatically go to the FORM with > a method="POST"?
If you prevent the browser from submitting the form (which you need to do to work in AJAX mode), then nothing happens automatically. You can't get to the form from php; php runs in the server and has no access to anything client-side, except what the client sends it. So you need to make changes at the client to send the form data. What you need to do is use javascript to get the contents of the form and 'submit' it using GDownloadUrl. You will need to find out how to use javascript to read form values http://www.washington.edu/webinfo/snippets/javascript/formvals.html You will need to find out how to use GDownloadUrl to POST the data to your php script. http://econym.org.uk/gmap/store.htm -- 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.
