Reply to Re: trouble with echo <br />

Your name:

Reply:


Posted by Lars Eighner on 12/07/05 19:36

In our last episode,
<WemdnUQmq5naYAveRVn-pQ@comcast.com>,
the lovely and talented Khai
broadcast on comp.lang.php:


> "Colin Fine" <news@kindness.demon.co.uk> wrote in message
> news:dn583g$726$1$8300dec7@news.demon.co.uk...
>> How do you know it is producing <br>? Where are you looking at it?
>> It looks as if something along the way is rewriting your XHTML as HTML.
>>
>> Colin

> I'm looking at the output in the browser (FireFox), and then view source.

> My code is simply an <?php IF ( ) { ?> html code <br /> <?php } ?> to
> generate an output. I've also tried echo, and print_f and when I look at the
> output in a browser, via view source, it changes the <br /> to a <br>

> *screaming and losing hair*

I don't understand why that outputs anything.

() should never be true, so if() should never execute whatever
is in the brackets.

if(1) outputs

html code <br />

but that isn't an html document, and in any event
my firefox doesn't change the <br /> to <br>


--
Lars Eighner usenet@larseighner.com http://www.larseighner.com/
"We have no opinion on your Arab - Arab conflicts, such as your dispute with
Kuwait." -- Bush's Ambassador April Glaspie, giving Saddam Hussein
the greenlight to invade Kuwait.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация