Page 1 of 1

PHP Caller ID

Posted: Fri Mar 21, 2008 8:14 am
by TonyIOD
I have the following javascript code in php that was used to open a popup window for reporting a problem. The js code passed the php module caller to the popup window. The code worked a few years ago, but no longer works, i.e., the $CALLER variable is "undefined" when the popup window code is called.
_______________________________________________________________
<SCRIPT LANGUAGE="javascript">
<!--
function openPR_Window(caller)
{
var prWH = window.open('http://www.dynamicoutsourcing.com/Probl ... R='+caller,
'PR','width=650,height=650,resizable=yes,scrollbars=yes');
}
//-->
</SCRIPT>
_______________________________________________________________

Can someone tell me what has changed and what I need to do to fix this?

--Tony

Re: PHP Caller ID

Posted: Fri Mar 21, 2008 10:53 am
by Christopher
It is probabay not this Javascript. I would guess that registar_globals is no longer set to On for you PHP installation. I has been Off my default for many year. Use $_GET['CALLER'] instead of $CALLER.

Re: PHP Caller ID

Posted: Fri Mar 21, 2008 11:24 am
by TonyIOD
Christopher

Yes, you are right. My host did change register_globals.

Thanks a bunch!