Ok I made adjustments and went with a $.get() for the ajax.
I am trying to pass in the jquery variable of id through to my php file.
Here is how I am sending the variable:
Code:
function show_post(id)
{
$.get('ajax_post.php', { post: id}, function(data)
{
$('.get_post_container').html(data)
});
}
Here is how I am trying to get the variable to process in php:
$id = $_GET[id];
I have also tried:
$id = $_GET[post];
any ideas on how to pass it properly?
Thanks