# getURL PHP query problem

**URL:** <https://forum.kirupa.com/t/geturl-php-query-problem/183898>\
**Category:** flash\
**Created:** [March 31, 2006, 12:51am UTC](https://forum.kirupa.com/t/geturl-php-query-problem/183898 "2006-03-31T00:51:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsargent](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@rsargent](https://forum.kirupa.com/u/rsargent)\
**Post date:** [March 31, 2006, 12:51am UTC](https://forum.kirupa.com/t/geturl-php-query-problem/183898/1 "2006-03-31T00:51:32Z")

</div>

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

```auto

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
