Now I have a php page "userreq.php" managed by a angular js controller.On a button click I am calling a funcion which posts the data to another php page "checkout.php".
$http({
url: "checkout.php",
method: "POST",
data: {
data: variable
}
}).success(function(response) {
console.log(response);
});
This is how I am posting it.Now I want the page to navigate to checkout.php after the variable has been posted so that I can work with that variable in checkout.php. How can I achieve that.