[thelist] PHP inside or outside?
Mike
evolt at muinar.com
Sun Apr 25 07:50:39 CDT 2004
At 19:06 24.04.2004 +0100, you wrote:
>echo "<a class=\"lightright\"
>href=\"description_view.php?idc_ref=$parent_ref\" title=\"go back\" >Back
>to Description</a>";
>
>is harder (for me) to read than this:
>
><a class="lightright" href="description_view.php?idc_ref=<? echo
>$parent_ref;?>" title="go back">back to description</a>
>
>especially when the page is mostly xhtml with a few bits of PHP logic.
Hi Tony
Agree. And did you know that you can even use <?=$parent_ref?> instead
of <? echo $parent_ref?> ? That makes it even better readable :)
Mike
_____ mike s. krischker http://webdesign-schweiz.ch/
webpro mailing list http://webdesign-list.com/
flashpro mailing list http://flash-list.com/
More information about the thelist
mailing list