I try to pass a $_GET variable from js to php and return the content from php. I tried out the 1`st page: PHP CODE
<?php $page = $_GET[url];?>
JS CODE
var foo = '<?php echo $page ?>';
$.post('fbapp.php', {url: 'foo'});
$("#continut").load('fbapp.php', function () {
$('.loader').fadeOut();
});
But every time the sended variable is empty and when i try to debug the $_POST variable from the fbapp.php file i get:
array (size=0)
empty
Have any ideea ?