RE: [PHP] $PHP_SELF in Netscape PART 2

2001-02-15 Thread Maxim Maletsky

This is not browser problem ... 

here:

echo "BRA
HREF=\"$PHP_SELF?mode=sub_categorycategory=$categorysub_category=" .
urlencode($subcategories[$index]) . "\"" . $subcategories[$index] ."/A';

This will always work.

Cheers,
Maxim Maletsky



-Original Message-
From: John Vanderbeck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 11:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] $PHP_SELF in Netscape PART 2


Ok, I made all the changes from $PHPSELF to $PHP_SELF, and i'm further along
with Netscape than before.  However, it now seems that there are still some
statements that $PHP_SELF isn't evaluated in.  However, now I can narrow it
down to certain statements:

WORKS:
   echo "P CLASS=NormalA
HREF=$PHP_SELF?mode=indexcategory=rootMain/A - $category/P";

DOES NOT WORK:
echo 'BRA HREF="', $PHP_SELF, '?mode=sub_categorycategory=',
$category, 'sub_category=', urlencode($subcategories[$index]), '"',
$subcategories[$index], '/A';


- 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] $PHP_SELF in Netscape PART 2

2001-02-15 Thread Maxim Maletsky

Why don't you instead try to learn the strings handling ... 
I persoanlly never used commas in strings ...  looks suspicious to me ...

Cheers,
Maxim Maletsky


-Original Message-
From: John Vanderbeck [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 12:11 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $PHP_SELF in Netscape PART 2


 You are using commas instead of periods, use ".$PHP_SELF." instead of
 ",$PHP_SELF," (and for the other instances as well).

Huh? I am going off of the example from the PHP documentation:

From http://www.php.net/manual/en/function.urlencode.php
echo 'A HREF="mycgi?foo=', urlencode ($userinput), '"';

So I am using that as a model:
echo ' A HREF=" ', $PHP_SELF, '?mode=indexcategory=',
urlencode($cateogory), ' "Blah/A';

- John Vanderbeck
- Admin, GameDesign



  Visit the Gates Motel webgame:
  http://www.gameslate.com/gatesmotel/




-- 
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]




[PHP] $PHP_SELF in Netscape PART 2

2001-02-14 Thread John Vanderbeck

Ok, I made all the changes from $PHPSELF to $PHP_SELF, and i'm further along
with Netscape than before.  However, it now seems that there are still some
statements that $PHP_SELF isn't evaluated in.  However, now I can narrow it
down to certain statements:

WORKS:
   echo "P CLASS=NormalA
HREF=$PHP_SELF?mode=indexcategory=rootMain/A - $category/P";

DOES NOT WORK:
echo 'BRA HREF="', $PHP_SELF, '?mode=sub_categorycategory=',
$category, 'sub_category=', urlencode($subcategories[$index]), '"',
$subcategories[$index], '/A';


- 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] $PHP_SELF in Netscape PART 2

2001-02-14 Thread John Vanderbeck

 You are using commas instead of periods, use ".$PHP_SELF." instead of
 ",$PHP_SELF," (and for the other instances as well).

Huh? I am going off of the example from the PHP documentation:

From http://www.php.net/manual/en/function.urlencode.php
echo 'A HREF="mycgi?foo=', urlencode ($userinput), '"';

So I am using that as a model:
echo ' A HREF=" ', $PHP_SELF, '?mode=indexcategory=',
urlencode($cateogory), ' "Blah/A';

- John Vanderbeck
- Admin, GameDesign



  Visit the Gates Motel webgame:
  http://www.gameslate.com/gatesmotel/




-- 
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] $PHP_SELF in Netscape PART 2

2001-02-14 Thread Chris Lee

dont use ' , ' use ' . '

echo 'a href="' . $PHP_SELF . '"hello/a';

--


Chris Lee
Mediawaveonline.com

em. [EMAIL PROTECTED]

ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120


""John Vanderbeck"" [EMAIL PROTECTED] wrote in message
005601c09696$08331480$[EMAIL PROTECTED]">news:005601c09696$08331480$[EMAIL PROTECTED]...
 Ok, I made all the changes from $PHPSELF to $PHP_SELF, and i'm further
along
 with Netscape than before.  However, it now seems that there are still
some
 statements that $PHP_SELF isn't evaluated in.  However, now I can narrow
it
 down to certain statements:

 WORKS:
echo "P CLASS=NormalA
 HREF=$PHP_SELF?mode=indexcategory=rootMain/A - $category/P";

 DOES NOT WORK:
 echo 'BRA HREF="', $PHP_SELF, '?mode=sub_categorycategory=',
 $category, 'sub_category=', urlencode($subcategories[$index]), '"',
 $subcategories[$index], '/A';


 - 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] $PHP_SELF in Netscape PART 2

2001-02-14 Thread Charlie Llewellin

A comma works when you use echo. Is there any reason why this is a bad idea?

Charlie Llewellin
- Original Message - 
From: "John Vanderbeck" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 14, 2001 9:11 AM
Subject: Re: [PHP] $PHP_SELF in Netscape PART 2


  You are using commas instead of periods, use ".$PHP_SELF." instead of
  ",$PHP_SELF," (and for the other instances as well).
 
 Huh? I am going off of the example from the PHP documentation:
 
 From http://www.php.net/manual/en/function.urlencode.php
 echo 'A HREF="mycgi?foo=', urlencode ($userinput), '"';
 
 So I am using that as a model:
 echo ' A HREF=" ', $PHP_SELF, '?mode=indexcategory=',
 urlencode($cateogory), ' "Blah/A';
 
 - John Vanderbeck
 - Admin, GameDesign
 
 
 
   Visit the Gates Motel webgame:
   http://www.gameslate.com/gatesmotel/
 
 
 
 
 -- 
 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]