This problem has been going on for a little while and I'm pretty sure I'm really close to achieving what I need.
However, this displayed both longitude and latitude as one.
This worked however it takes two clicks to actually get the GPS information in the two inputs.
This will be a part of a form where on SUBMIT of that form the longitude and latitude are stored in the database without the user seeing anything so their location can be verified at a later date.
I need help creating this so that on the input submit the location longitude and latitude is stored in a MySQL database.