|
Posted by Martie on 05/19/06 19:31
On Wed, 17 May 2006 22:10:31 GMT, Domestos wrote...
>
>Hi all,
>
>I am currently writing pages that are pure PHP. i.e. they begin with the
><?php symbol.
>
>I am embedding all the HTML within echo ' ' commands even the <HTML> <HEAD>
>and <BODY> tags
>
>i..e.
>
><?php
>echo '<HTML><HEAD><TITLE>Title</TITLE></HEAD><BODY></BODY></HTML>';
>?>
>
>Is this the right way to do things? or should I be embedding PHP into the
>HTML page?
>
If only you are working on the code it's probably more of a personal preference.
If you have other people working on it now or in the future, it may be better to
separate the HTML from the PHP code. If there are future updates to the code
that may also factor into your decision.
--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth
Navigation:
[Reply to this message]
|