getURL PHP query problem

I’m trying to pass some variables to a PHP script which will open in a popup window. Here’s my code:


function magnify() {
popContent = "content="+image[p]+",title="+caption[p];
getURL("javascript:window.open('imgPop.php?"+popContent+"','imgPop','width="+picW+",height="+picH+",left=0,top=0,toolbar=no,location=no,scrollbars=no,status=no,resizable=no,fullscreen=no'); void(0);");
}

The popup works but only when i remove the query ("?") superceeding “imgPop.php”. Does anybody know what i’m doing wrong? Is there another way of opening a popup window and simultaneously passing variables to the PHP without the need for a file to bridge the gap? Or am i simply misunderstanding the javascript method?

Many thanks,
Robert