I am having a problem on one of our customers sites. The code I am using is:
Code:
$QueryString = "script=php";
foreach ($_GET as $key => $value) {
$value = urlencode(stripslashes($value));
$QueryString .= "&$key=$value";
}
This code works on 99% of the sites it is used on. However, I have a customer that is throwing an error on the line:
Code:
foreach ($_GET as $key => $value) {
The specific error message is:
Quote:
quote:
Warning: Invalid argument supplied for foreach() in SOMEPAGE on line 157
Script Name Undefined.
|
Does anyone have an idea what may be wrong? If so, is there a fix?
Thanks in advance;
Brad Brening