You are here: Re: trouble with echo <br /> « PHP Programming Language « IT news, forums, messages
Re: trouble with echo <br />

Posted by Colin Fine on 12/07/05 01:50

Khai wrote:
> Man, you were so right. AS soon as I saw the first Try $good = TRUE; it
> dawned on me that I never set the $good to anything except FALSE. So when
> it was testing for $good == TRUE it was coming up false, because $good was
> never ever set to true, it was just an empty var. *smacks forhead*.
>
> However, I changed my echo setup and went with escaping to HTML, IE:
>
> <?php if ($good = TRUE) { ?>
> blah blah <br />
> <?php }; ?>
>
> THat seems to work better, but still having issues getting the <br />
> instead of the <br> it keeps punching out. Perhaps it's just in cache and I
> need to clear it.

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

 

Navigation:

[Reply to this 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

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