0

I am using PHP/MySQL to return store locaitons based on distance from a give lat/lng.

I am currently using a hard coded lat/lng location but I would like to store a users Location either by Browser Geolocation or a geocoded text box or something.

is it possible to use HTML5 GeoLocation and then access the lat/lng as PHP variables so that I can pass them to MySQL? I have my php/mysql working, I am just not sure how to grab the users location

1 Answer 1

1

You will need to use ajax to pass the data to php.

You can look at jQuery's ajax library: http://api.jquery.com/jQuery.ajax/

Or at a ajax tutorial: http://www.w3schools.com/ajax/default.asp

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.