Possible Duplicate:
How can I get query string values?
Hello I have a page with a url like
mypage.com?iid=11&pid=1
In there im running some ajax and need to pass the idd from my querystring to this code block
$.ajax({
dataType : "html" ,
url: "stream.php?iid=[GET iid]&lastComment="+ $(".postedComment:last").attr('id') ,
But am not experienced enough with JS to get my syntax correct. What would i use in place of [GET iid] to pass that variable?
<?php $_GET['iid'];?>
won't work since its a JS file.
Thanks