On Mar 2, 2010, at 8:48 AM, Ashley Sheridan wrote:

How is $item_id created? You've not shown that in your PHP script examples.

// parse item id from the url
$refer=$_SERVER['HTTP_REFERER'];
$thispage=$_SERVER['PHP_SELF'];
$item_id=substr($thispage, -9);
$item_id=substr($item_id, 0, 5);

$_SESSION['item_id'] = "$item_id";    

The above is where item_id is created and added to a session.

The important thing is that this error never showed up before until I added the Javascript link below:

var oss_itemid = "<?php echo $item_id; ?>";
var loadOSS = window.open("http://www.myurl/myfile.php?iid="; + oss_itemid, "", "scrollbars = no ,menubar = no ,height=600,width=600,resizable=yes,toolbar=no,location=no,status=no");


When I was testing initially, I had removed the variable above in the link with a hard coded value and I never received this error. Only when I made it dynamic did this error appear.

Thanks for any help.

--Rick

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to