|
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]
|