PHP Caller ID

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
TonyIOD
Forum Newbie
Posts: 2
Joined: Fri Mar 21, 2008 8:03 am
Location: North Carolina

PHP Caller ID

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: PHP Caller ID

Post 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.
(#10850)
TonyIOD
Forum Newbie
Posts: 2
Joined: Fri Mar 21, 2008 8:03 am
Location: North Carolina

Re: PHP Caller ID

Post by TonyIOD »

Christopher

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

Thanks a bunch!
Post Reply