require_once('site_forms.php');
require_once('site_core.php');
require_once('site_db.php');
// Set the title of the page
$title = "Insert Page";
echo_head($title);
// Create page content
echo '
'.$title.'
';
// If data is posted and URL action is insert
if ($_POST && $_GET['action']=="insert") {
insert_page($_POST);
echo '
The following values were submitted.
Enter new values and submit again,
or press clear to reset the form.
';
echo_page_form($_POST);
}
else {
// If there is no posted data or no URL insert action
echo_page_form();
}
echo '
';
echo_foot();
?>