[PHP] Netscape not resolving $PHPSELF ??
I'm having a problemin Netscape, any of my echo statements that use $PHPSELF, netscape isn't resolving $PHPSELF, but properly resolving all the other vars. There are several different types of echo statements, but here is a sample: echo 'BRA HREF="', $PHPSELF, '?mode=sub_categorycategory=', $category, 'sub_category=', urlencode($subcategories[$index]), '"', $subcategories[$index], '/A'; and: echo "P CLASS=NormalA HREF=$PHPSELF?mode=indexcategory=rootMain/A - $category/P"; Any ideas? This works FINE in Internet Explorer. And all the other vars in those echo statements are properly resoved into value. - 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]
RE: [PHP] Netscape not resolving $PHPSELF ??
Is the script in the root? I seem to remember reading about problems with this and Netscape (although that sounds so strange I'm doubting myself here :-) Try shoving it in a subdirectory and see what happens. It's got to be worth 30 seconds to find out - I'd do it right now only I don't have Netscape at work HTH Jon -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: 13 February 2001 17:42 To: [EMAIL PROTECTED] Subject: [PHP] Netscape not resolving $PHPSELF ?? I'm having a problemin Netscape, any of my echo statements that use $PHPSELF, netscape isn't resolving $PHPSELF, but properly resolving all the other vars. There are several different types of echo statements, but here is a sample: echo 'BRA HREF="', $PHPSELF, '?mode=sub_categorycategory=', $category, 'sub_category=', urlencode($subcategories[$index]), '"', $subcategories[$index], '/A'; and: echo "P CLASS=NormalA HREF=$PHPSELF?mode=indexcategory=rootMain/A - $category/P"; Any ideas? This works FINE in Internet Explorer. And all the other vars in those echo statements are properly resoved into value. - 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]
Re: [PHP] Netscape not resolving $PHPSELF ??
John Vanderbeck wrote: I'm having a problemin Netscape, any of my echo statements that use $PHPSELF, netscape isn't resolving $PHPSELF, but properly resolving all the other vars. There are several different types of echo statements, but here is a sample: echo 'BRA HREF="', $PHPSELF, '?mode=sub_categorycategory=', $category, 'sub_category=', urlencode($subcategories[$index]), '"', $subcategories[$index], '/A'; and: echo "P CLASS=NormalA HREF=$PHPSELF?mode=indexcategory=rootMain/A - $category/P"; Any ideas? This works FINE in Internet Explorer. And all the other vars in those echo statements are properly resoved into value. Try $PHP_SELF. -- Pavel a.k.a. Papi -- 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]
Re: [PHP] Netscape not resolving $PHPSELF ??
Well, yes the script was in the root (root of the URL not root of the server). I threw it into a subdirectory, but no go. Same problem. Very strange. - John Vanderbeck - Admin, GameDesign - Original Message - From: "Jon Haworth" [EMAIL PROTECTED] To: "'John Vanderbeck'" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 12:46 PM Subject: RE: [PHP] Netscape not resolving $PHPSELF ?? Is the script in the root? I seem to remember reading about problems with this and Netscape (although that sounds so strange I'm doubting myself here :-) Try shoving it in a subdirectory and see what happens. It's got to be worth 30 seconds to find out - I'd do it right now only I don't have Netscape at work HTH Jon -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: 13 February 2001 17:42 To: [EMAIL PROTECTED] Subject: [PHP] Netscape not resolving $PHPSELF ?? I'm having a problemin Netscape, any of my echo statements that use $PHPSELF, netscape isn't resolving $PHPSELF, but properly resolving all the other vars. There are several different types of echo statements, but here is a sample: echo 'BRA HREF="', $PHPSELF, '?mode=sub_categorycategory=', $category, 'sub_category=', urlencode($subcategories[$index]), '"', $subcategories[$index], '/A'; and: echo "P CLASS=NormalA HREF=$PHPSELF?mode=indexcategory=rootMain/A - $category/P"; Any ideas? This works FINE in Internet Explorer. And all the other vars in those echo statements are properly resoved into value. - 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]
Re: [PHP] Netscape not resolving $PHPSELF ??
- Original Message - From: "Pavel Jartsev" [EMAIL PROTECTED] To: "John Vanderbeck" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 13, 2001 12:49 PM Subject: Re: [PHP] Netscape not resolving $PHPSELF ?? Try $PHP_SELF. -- Pavel a.k.a. Papi Thanks that fixed it. I didn't realize there were two version of this variable. Why? Hmm, strange that the other one worked fine with IE but not Netscape. I thought all thi was done server side, so what the heck does the browser have to do with it? - 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]
Re: [PHP] Netscape not resolving $PHPSELF ??
Thanks that fixed it. I didn't realize there were two version of this variable. Why? Hmm, strange that the other one worked fine with IE but not Netscape. I thought all thi was done server side, so what the heck does the browser have to do with it? As far as I know, $PHP_SELF is the variable and NOT $PHPSELF. It works in IE because if no page is printed in the tag, it just reloads the same page anyway. If you look at your html source while using $PHPSELF, you will probably see something like this: a href=This is the link/a Netscape realizes this is invalid html and complains, IE simply reloads the current page. -- Jason Stechschulte [EMAIL PROTECTED] -- But you have to allow a little for the desire to evangelize when you think you have good news. -- Larry Wall in [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]
Re: [PHP] Netscape not resolving $PHPSELF ??
Thanks that fixed it. I didn't realize there were two version of this variable. Why? Hmm, strange that the other one worked fine with IE but not Netscape. I thought all thi was done server side, so what the heck does the browser have to do with it? As far as I know, $PHP_SELF is the variable and NOT $PHPSELF. It works in IE because if no page is printed in the tag, it just reloads the same page anyway. If you look at your html source while using $PHPSELF, you will probably see something like this: a href=This is the link/a Netscape realizes this is invalid html and complains, IE simply reloads the current page. No, that can't be it, because it actually gets resolvedI have echo'd it out to the screen to verify, and it DOES get resolved in IE. - John Vanderbeck - Admin, GameDesign -- Jason Stechschulte [EMAIL PROTECTED] -- But you have to allow a little for the desire to evangelize when you think you have good news. -- Larry Wall in [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] -- 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]