i wanted to open a new window, that is using java script. the url would be a PHP variable, how am i going to that?
PHP=serverside language javascript=client side
PHP doesn't care what javascript or text you output. You have to control what you output with your programming logic. This can be anything from binary data to html to javascript