I want pass a variable through AJAX url to another PHP page and get it with:
$id=$_GET['id'];
This is my link where value is passed for example $id=6
.
<a id="pageid" href="ifsc-bank.php?id=<?=$id?>"><img src="images/iconf.png"/> <?=$bank?> </a>
I want to get the value in ifsc-bank.php
.
$id=$_GET['id'];
I tried:
pag.ajax({
type: "post",
url: "ifsc-bank.php",
data: {'data':dataString},
success: function(ccc)
{
pag("#pageid").html(ccc);
}
});