Geolocation and database questions

I want to design a website that take users’ location(altitude and longtitude)

and upload these parameter to mysql or MS sql.

Could anyone give me some hint how to accomplish this?

Thanks

Harry

See http://javascriptexample.net/bom12.php for how JavaScript can be used to obtain their location.

See http://javascriptexample.net/ajax.php for the ways that the JavaScript can pass that information to the server.

You would then use whatever server side language you have available access the database to store the information. Exactly how you’d do that part would depend on what server side language you have available to use.

thank you!! appreciate you help

now I am using php and ajax to upload the altitude and longtitude to the database, but I want to make my website to be mobile friendly too(if you view the website on iphone, it become a mobile website). Could you also tell me how to achieve this?

Thanks

What part of what you are currently using doesn’t work on the mobile device?

I mean I want to make my website have a mobile website layout, how can I do it?