I need to translate the ASP codes below to PHP.. please help.
<% @language="vbscript" %>
<body>
<%If Request.QueryString.Count = 0 then%>
<SCRIPT language="JavaScript">
var pWin = null
function portWin(url, x, y) {
pWin = window.open (url, 'newWin', 'width=' + x + ',height=' + y + ',scrollbars=1,status=0,menubar=no')
if (window.pWin) pWin.focus()
}
</SCRIPT>
<a href="javascript:portWin('popup.htm',250,150)">Open Window</a>
<% Else
for i = 1 to Request.QueryString.Count
Response.Write Request.QueryString.Key(i) + " : " + Request.QueryString.Item(i) + "<BR>"
next
End If
%>
</body>
I would appreciate any help.