i am trying to use the jquery POST function but it is handling the request in AJAX style. i mean its not actually going to the page I am telling it to go.
$("#see_comments").click(function() {
$.post(
"comments.php",
{aid: imgnum},
function(data){
});
});
this function should go to comments.php page with the aid value in hand. its posting fine but not redirecting to comments.php.
@Doug Neiner
clarification:
1. I have 15 links (images). i click on a link and it loads my javascript. the JS knows wat imgnum i opened. this imgnum i want in the comments.php. i have to use this javascript and no other means can do the trick. the JS is mandatory.
2. your method successfully POSTs the aid value. but in the comments.php when i try to echo that value, it displays nothing.
3. I am using Firebug. in the Console, it shows the echo REQUEST i made in Step (2) successfully.