I want to pass values to a PHP script so i am using AJAX to pass those, and in the same function I am using another AJAX to retrieve those values.
The problem is th
In your PhP file there's going to be a variable called $_REQUEST and it contains an array with all the data send from Javascript to PhP using AJAX.
$_REQUEST
Try this: var_dump($_REQUEST); and check if you're receiving the values.
var_dump($_REQUEST);