Ok, I feel like the big idiot now.
I fixed the problem. It was because of the whole global bit. The ones that
were not working were inside a function, the ones that were working were
outside the function. I guess I ASSUMED (yeah we know what happens when you
do that) that things like $PHP_SELF were always global.
Sorry to have bothered everyone :(
- John Vanderbeck
- Admin, GameDesign
- Original Message -
From: "John Vanderbeck" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 14, 2001 10:59 AM
Subject: [PHP] RE: $PHP_SELF in Netscape PART 2
I converted everythign over to use '.' instead of ',' but I still get the
same exact results. That is, $PHP_SELF is resolved to NULL, and every
other
variable to the correct data. Here is the new string:
echo 'BRA HREF="' .$PHP_SELF. '?mode=sub_categorycategory='
.$category. 'sub_category=' .urlencode($subcategories[$index]). '"'
.$subcategories[$index]. '/A';
I think i'm just going to give up on this and rewrite it, because it DOES
work if I do the old double quotes bit. Just means I need to re-arrange
it
and do it in multiple ECHO statements, because I can't do the urlencode()
in
double quotes. But I would really like to understand WHY this doesn't
work.
Again, all other varaibles are properly resolved, and in IE $PHP_SELF is
properly resolved.
- John Vanderbeck
- Admin, GameDesign
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]