I like to separate my html from my php like this:
<? if(something){ ?>
<input name=<? echo $var; ?> value=<? echo $var2; ?> />
<? } ?>
I notice others will allow the php engine to create the html like this:
<?
if(something){
echo '<input name="$var" value="$var2" />'
}
Out of sheer curiosity, is the second more optimized? I don't' want to be thinking too deep about it, but I have wondered if it's a better way to code.