I have a small problem to get jQuery post variables. So i have javascript file where is code bellow:
<script type="text/javascript">
$.post("view.php", { name: "John" } );
</script>
And i try to get that name "John" in view.php file like this:
<?php $variable = $_GET["name"]; ?>
And it wont get that name. Can someone please help me?