Hello All
In this example ( file attached ) you will learn how to get some Users information and display a Country Flag , or you can display any information you want , or save it localy or on server to make a leaderboard with countries or any other information
demo : rafaeltrigo.000webhostapp.com/geolocation
You will see that I saved the flags in project file , inside a subfolder : flags and loaded images requesting the file by string with the code of the country found on ajax.lastdata
I got the information from this website : "https://ipinfo.io/json" and I dont know how many request is allowed to make
All My Tutorials Here
construct.net/en/tutorials/construct-tutorials-2525