Try this:

--------------------------------------------------------
File: netscape6.php
<?php
echo "<HTML><BODY>\n";
echo "this is a test...this is the first part<BR>\n";
echo "this is a test...this is the second part<BR>\n";
echo "<form method=\"POST\" action=\"netscape6.1.php\"
name=\"netscape\">\n";
echo "<input type=\"hidden\" name=\"var\" value=\"10\">\n";     // here
echo "<input type=\"submit\" name=\"go\" value=\"Test\">\n";    // and here
echo "</form>\n";
echo "</BODY></HTML>\n";
?>
--------------------------------------------------------

these quotes are the only thing I can believe Netscape might be guilty in.

Even if it was exactly Netscape's 3 HTML parser to invent a (no quotes are
necessary as long as there's at least one blank character)

Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.com (Where PHP Begins)
 [EMAIL PROTECTED]
 www.phpbeginner.com




-----Original Message-----
From: Lucas Persona [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 11:50 PM
To: Jason Lotito; [EMAIL PROTECTED]
Subject: Re: [PHP] Netscape 6, What a piece of s$#@ ,anyone else had
problems with php and Netscape 6?


Jason,

I've Replyed also to the lsit, because someone could help us on this...

Jason Lotito wrote:
> Lucas Persona wrote:
> >   I was used to think on that way...
> >   Some time ago I have problems with Netscape 6 and PHP. It
> > was not a HTML error
> > but something related to PHP/Netscape 6.
> >   The problem was in showing correctly the source code.
> >   I had a page that includes another one, like a
> > header/menu/footer main that includes
> > a data area.
> >   If I just put the include (or require code) following the
> > page sequence, that's ok, the Netscape 6 shows correctly the source.
> >   If I add something like (if (isSet($var) && $var == 10) {})
> > before the include
> > (or require) and $var exists and has value 10, the parser
> > will process the include, show
> > the page, but Netscape don't show the source code of this part.
>
> Unfortunately, I have a very hard time believing this.  Now, I can
> imagine a few instances where this might come into play, but then you
> would have to actually design for this to happen, but you didn't.  I
> would have to imagine that something was wrong with your actual code
> logic, as PHP is only as good as the HTML you code, and the logic you
> use.  If the if statement was failing, of course it would not include
> the file.  At the same time, why you used both isset() and $var == 10
> when $var == 10 would have worked fine also makes me wonder about the
> underlying code.

  Yeah I know...I can say that I still don't believe..but it happens! :)
  If you (or anyone here) has Netscape 6 (I'm using the 6.01) could try
the following codes:
--------------------------------------------------------
File: netscape6.php
<?php
echo "<HTML><BODY>\n";
echo "this is a test...this is the first part<BR>\n";
echo "this is a test...this is the second part<BR>\n";
echo "<form method=\"POST\" action=\"netscape6.1.php\"
name=\"netscape\">\n";
echo "<input type=hidden name=var value=10>\n";
echo "<input type=submit name=go value=\"Test\">\n";
echo "</form>\n";
echo "</BODY></HTML>\n";
?>
--------------------------------------------------------
File: netscape6.1.php
<?php
echo "<HTML><BODY>\n";
echo "1) this is a test...this is the first part<BR>\n";
echo "this is a test...this is the second part<BR>\n";
if ( $var == 10)
{
  include ('netscape6.2.php');
}
echo "this is a test...this is the last part<br>\n";
echo "</BODY></HTML>\n";
?>
--------------------------------------------------------
File: netscape6.2.php
<?php
echo "<h1>this is the other file...</h1>\n";
?>
--------------------------------------------------------


Ok, now that you have all the three sample files you can check for
HTML errors...
How I did the test:
1. Run Netscape 6
2. Access file netscape6.php
3. Press the 'Test' button that POST to netscape6.1.php
4. See the page and compare with the source code (View Page Source)
5. Surprise! They are different...the netscape6.2.php file is not in the
source.

6. Change the netscape6.1.php file on the following lines:
    3: echo "2) this is a test...this is the first part<BR>\n";
    5: // if ( $var == 10)
    6: //{
    8: //}
7. Great! Now that you just take the if statement out, clear the
Netscape
Cache (Edit -> Preferences -> Advanced -> Cache -> Clear Memory Cache
and
Clear Disk Cache)
8. Access file netscape6.php again..
9. Press the 'Test' button that POST to netscape6.1.php
10. The result is the same that you've get before but now, when you view
the source code, the result of netscape6.2.php is there too..
11. Be sure to see the '2)' on the Page Source. If the '1)' is still
there
you need to clean your cache.

Anyone did this test? How Netscape know that there is an if statment
there??
Any point that I'm missing on this test?

> >   This is not a big deal when dealing with simple pages, but,
> > if you have a form on this
> > page, it will not work right since after the page comes to
> > the browser and is shown, it
> > doesn't recognize it anymore.
> >   It's very strange but I tested it and it happened that
> > way...changing something on PHP
> > code, changes the behaviour of the browser..
>
> No.  PHP does what you tell it to do, and by all accounts, I can only
> see that you were telling PHP NOT to display the code.

Try the test above.. It shows the code but netscape doesn't know that.

See you,
Lucas Persona

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

Reply via email to