Ajax Code

<script src=”http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js”></script&gt;
<script>
function setAjax(){
$.ajax({
type: “POST”,
data:{‘bannerid’:<?php echo $bannerid;?>,’campaignid’:<?php echo $campaignid;?> ,’advertiserid’:<?php echo $advertiserid;?>,’clickes’:’1′,’websiteid’:’1′,’zoneid’:’1′},
url: “request.php”,
})
.done(function( result ) {
if(result) location.href ='<?php echo $destination_url;?>’;
});
}
</script>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s