Forum Moderators: coopster
As I see it, there are two possibe routes to go...
Option 1: includes
(a) $_GET the variables.
(b) Feed the variables to data gathering functions.
(c) Return variables containing the data.
(d) Include files containing portions of page code and calls for variables at appropriate places.
Option 2: functions
(a) $_GET the variables.
(b) Feed the variables to data gathering functions.
(c) Return variables containing the data.
(d) Feed the data variables to functions that write portions of page code using the variables and output the page.
Assuming the end result of both would be identical, is there any compelling reason to use one over the other? Is one less work for the server, or easier to maintain, or faster?
Thanks,
cEM