Includes Problem
Posted: Fri Aug 07, 2009 9:21 am
Hello Everyone,
I am trying to include a footer at the bottom of a page. It just contains links to other portions of the site. The page it is being included on is a dynamic page, it recieves actions using GET. The problem is however, when i go to the page using a get (page.php?action=whatever), the included file is included before any of the actions, when i want it to be at the bottom. Any help will be appreciated.
I am trying to include a footer at the bottom of a page. It just contains links to other portions of the site. The page it is being included on is a dynamic page, it recieves actions using GET. The problem is however, when i go to the page using a get (page.php?action=whatever), the included file is included before any of the actions, when i want it to be at the bottom. Any help will be appreciated.
Code: Select all
<?php
session_start();
/*This page containts all of the administrative operations.
member_add,member_view,member_delete,
event_add,event_modify,event_view,event_delete
statistics*/
include "../db_connect.php";
if(isset($_SESSION['logged_in'])) {
$action = $_GET['action'];
//all my actions which happen go here.
include "footer.html";
} //closes the session check
else {
include "not_logged.php";
}
?>