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