Re: php in a layer trouble
| From: | Rob Packer | Date: | Fri, 26 Apr 2002 00:39:21 +0000 |
| Subject: | Re: php in a layer trouble | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94672@lists.php.net to get a copy of this message | ||
Yep, you guys are right! Thanks for the help
Robert
"Justin French" <justin@indent.com.au> wrote in message
news:B8EDBB0E.5029%justin@indent.com.au...
> I don't believe there is such a problem, because
>
> <DIV><? echo "foo"; ?></DIV>
>
> will get replaced with <DIV>foo</DIV> by the PHP parser. >> Thus by the
> time the content gets to the browser, it ISN'T PHP anymore -- it's HTML,
or
> text.
>
> What you should do is view the source of your processed page, to ensure
that
> your HTML around the problem area is valid, and correctly parsed. You may
> even want to run a HTML validator over it.
>
>
> Remember, once the page hits the browser, the code is the RESULT of the
PHP
> code, not the php code itself, thus, PHP code that produces correctly
> formatted HTML should not break any page. PHP code that creates poorly
> formatted or invalid HTML will break a page, just as if you did it
yourself
> with a text editor on a raw HTML page.
>
>
> Good luck.
>
>
> Justin French
> --------------------
> Creative Director
> http://Indent.com.au
> --------------------
>
>
>
> on 25/04/02 4:52 AM, Robert (robert@nrc.net) wrote:
>
> > Has anyone ever had trouble with Netscape not displaying a layer with
you
> > put any php code in it? Anyone know a source for reading more about it?
> >
> >
>