Submit form information from a leaflet popup to MySQL table

المشرف العام

Administrator
طاقم الإدارة
I have a leaflet map and I want to have the user fill out a form in a leaflet popup and upon clicking the 'submit' button - the information in the form will be inserted into my MySQL database.

As a final goal, I want the user to place a point on the map (via leaflet.draw) and fill out a form, add the form information and the lat/lng to my database (MySQL) and then add the user's point back to the map with all of the information in a popup.

I have a map, database and php file set up, but the data are not being sent to my database. Any suggestions on where i should go from here? I'm wondering if I set up my form wrong? Maybe some syntax? I am able to add a point to the map and have a popup appear with the form info within it but the when I click 'submit' the data does not appear in my database.

Here is my index html file that holds my map

body { padding: 0; margin: 0; } html, body{ height: 100%; width: 100%; } #myMap { margin-top:50px; width:100%; height:100%; }
 
أعلى