Use Client Side Values In Second Php File Via Ajax
I have three php files. filter.php - to send Ajax request and get response insert.php - to store Ajax response getResponse.php - to use stored Ajax response. Primary purpose of do
Solution 1:
Here is the answer:
<script>
$.ajax({
type: "POST",
url: "filter.php",
data: { name: tp, country:"test"},
success:function(response) {
var res = response;
$.ajax({
type: "POST",
url: "getResponse.php",
data: { res: res },
success:function(data){
alert(data);
}
});
});
</script>
Post a Comment for "Use Client Side Values In Second Php File Via Ajax"