Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <script> function geo_success(position) { //main function
  2. rintAddress(position.coords.latitude, position.coords.longitude);document.getElementById("lati").value = position.coords.latitude;
  3. document.getElementById("long").value = position.coords.longitude;
  4. var mine = position.coords.latitude;
  5. }
  6. </script>
  7. //php code
  8. <?php echo 'MY'.'<script type="text/javascript">document.write(mine); </script>';
  9. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement