Code: Select all
<a href="ratepost.php" rel="nofollow" class="vote_up_button" onclick="$.post(this.href, {postid: 44, vote: '1'}); return false;" >
Code: Select all
$.click(function() {
$.ajax({
type: 'POST',
url: $(this).attr('href'),
data: ({postid : data.postid, vote : data.vote}),
dataType: 'json',
success: function(data) {
Does anyone have any idea how i need to pass the variables in this script so as to populate the $_POST variable in the php script and not the $_GET?