Reply to Re: Any suggestions about (quotes or <? ?>)

Your name:

Reply:


Posted by Marcin Dobrucki on 05/23/05 14:52

Angelos wrote:
> Hello again....
> I am coding php in dreamweaver. And because I like to use it for the HTML
> parts I want my HTML code to be unquoted and not into echo statements.
>
> BUT I ended up in something like this
> <? if ($blabla == 1) { ?>
> <h1> blabla is one <h1>
> <? }
> elseif ($bloublou == 2) { ?>
> <form>
> <input value= <? echo $var ?> ..... >
> </form>
> <ul><? do { ?> <li><h4><? etc..... ?>

Also, please note that with XHTML 1.0 requires you to quote all
attributes you have in your html. So your <input ...> should actually be:

<input value="<? echo $var; ?>" ....>

See reference at:
http://www.w3.org/TR/xhtml1/#h-4.4

/Marcin

[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

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