Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "
- <script type='text/javascript' src='http://j.maxmind.com/app/geoip.js'></script>
- <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
- <script>
- function saveLocation(){
- var url = 'downaux.php';
- var cidade = geoip_city();
- var pais = geoip_country_name();
- //outros
- $.post(url,{
- cidade: cidade,
- pais: pais
- //,demais campos
- },function(data){
- console.log('saved');
- })
- }
- <a href='javascript:saveLocation()' <img src=" . $row['nome'] . ".jpg width=60 height=60></a>');
- </script>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement