Reply to Re: my HTML header - any feedback?

Your name:

Reply:


Posted by Mike Placentra II on 11/28/65 12:00

On Jan 16, 3:16 pm, dittonamed <dittona...@gmail.com> wrote:
> I will be building a "template" from this to be included in each page
> of a PHP/JS/HTML project i'm starting soon, but I'm curious what other
> connoisseurs might think of my layout. Hmm like throwing the GET/POST
> processing between the <head> and <body> tags is a new idea, but it
> seems logical. Any caveats or anything watch out for?
>
> Any thoughts?
>
> Cheers!

There's no advantage to processing in the middle of the output. It
makes more sense not to separate your code into header and processing
blocks. All processing should usually be done before any output so you
don't end up with spaghetti code.

You may want to look at the Model-View-Controller (Model2 for web)
design pattern, and maybe check out some frameworks such as Code
Igniter or Zend Framework. It should then be clear that processing is
best done before any output.

Good luck,
-Michael Placentra II | PHP5 ZCE

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация