I don\'t know why my code is not working, I am trying to send the coordinates from JavaScript to PHP using AJAX and I am able to pull values from JavaScript to textbox but v
First off, separate the PHP processing. Now after getting the location using the callback then perform the AJAX. Sample Code:
samepage3.php
request.php
$lat, 'lon' => $lon)); exit; } ?>