I'd like to hear some suggestions for structuring your PHP-pages.
Most of my pages are more or less the same, there is an update, insert and delete section.
My index.php usually looks like this:
<?
require('header.php');
switch($action) {
case insert:
include('insert.php');
break;
case update:
include('update.php');
break;
case delete:
include('delete.php');
break;
default:
include('default.php');
}
require('footer.php');
?>
Is this a good way to structure the pages or are there better solutions?