I have a very simple question and i could not so far find a solution. I have a leaflet which gets data from Geoserver via L.TileLayer.BetterWMS.js (https://gist.github.com/rclark/6908938). When a user click in the image, get the feature data. In the WMS there is only a row each time with only one value. I would like to get this value to a variable and parse to PHP. How to do that? Below is a picture of the leaflet and the table which I get.
I want to parse the value 188 to a variable.
Thanks in advance!
Your response is being returned as text/html if you want to have access to the values you should request the data in application/json or application/xml and parse that.