Thanks for the scripts, but in PHP (as the StackOveflow post best answer said) it's impossible to get the accurate location without prompting the user for their timezone, which I can't do in my case.
I'm using JavaScript/jQuery for the date, but because of that, (and because as you said earlier that JavaScript can't parse addresses very well), I can't parse the addresses using PHP.
But I did find a workaround.
This script I found on Stack Overflow:
- var someText="go to mall (8240 E marblehead Way 92808) is the best 7143139656 is a phone number";
- alert(someText.match(/\(([^)]*)\)[^(]*$/)[1]);
allows me to parse the addresses, as long as I ask my users to write the address in parenthesis.
Thanks for your help. :)