Hello,
I have a PHP page called summary.php and I m trying to make the jquery script to post piece of data when <select> is modified. This is my code atm
<script>
$("select").change(function () {
page_id=$(this).attr('id');
alert(page_id);
$.post("#", {id:page_id});
})
.change();
</script>
<?php if(isset($_POST['id'])){
die("YES!");
}
echo $_POST['id'];
?>
The thing is that it will not set the $_POST variable, although theoretically it should ? Atleast according to my logic. Help me please, I m going insane with this.