I currently have an image where when I click on it I have the coordinates which are displayed on my php page however I would like to be able to store each time I click on it the coordinates in a variable and that the old coordinates are not erased when I click again on the image. I tried a for loop with array variable but I dont know how it really works
Image of my page, showing coords when I click on it, but not getting saved in variable
[1]: https://i.stack.imgur.com/kHMzy.png