You are here: Re: quick question « PHP Programming Language « IT news, forums, messages
Re: quick question

Posted by Moot on 11/21/06 19:49

Auddog wrote:
> After starting to work with PHP, I have a question on others programming
> preferences. I usually create multiple pages for user input, 1 page for the
> form and 1 page for the insert and then a redirect. I have noticed thru
> several tutorials on the web that most are created pointing back to
> themselves
>
> I.E.
> if(isset($_post['submitted'])) {
>
> Is there a preferred way? Other than the obvious, it's all on one page, is
> there other benefits to the one page setup?
>
> A

Probably just the programmer's preference, in most cases. Seperate
files may work better in some situations. In my case, however, where
we've got hundreds of dynamic pages on our intranet, spanning multiple
files not only increases our file count dramatically, but also
introduces a problem with maintenance in trying to figure out which
files go together. Much easier to keep all page logic in one file.

 

Navigation:

[Reply to this 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

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