Doesn't really matter which method is more complicated or not; I know from experience in the point of seeing a web designer actually walk out of a job because they looked at something simular to this and wanted no part in it.I must say that I find that more complicated to figure out then the example with the for loop, which you infact, make much more complicated then it really is, php can move in and out of html with the <? ?> which I think makes it a lot like template engines, as to clear up your example, I would do
IMO though you shouldn't really have variables of any sort - even tags that represent PHP variable directly or indirectly within any kind of markup.
For a better idea of constructing a page why not look at HarryF's examples ?





, how many are you working on it ?
.
Bookmarks