Guest User

Untitled

a guest
Mar 14th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. function localiser5() {
  2. var val6 = document.getElementById('val6').value;
  3. console.log(val6);
  4. var x;
  5. var y;
  6. var z;
  7. $.ajax({
  8. type: 'POST',
  9. url: 'php/survoler.php',
  10.  
  11. data: {
  12. val6 : val6
  13. },
  14. success:function(data){
  15.  
  16. map.flyTo(new L.LatLng(x, y),12);
  17. },
  18. error:function(response){
  19. console.log(response);
  20. }
  21. })
  22.  
  23.  
  24. }
  25.  
  26. $db = pg_connect("host=localhost port=5432 dbname=d3topo user=postgres password=khadija") or die('could not connect :'.pg_last_error());
  27.  
  28. if(!empty($_POST['val6'])){
Add Comment
Please, Sign In to add comment