Hello people.
I designed a website using isset for exploring it.
Example of index.php:
Code:
<?php
include_once("menu.php");
include_once("functions.php");
?>
I got a static menu file something like this:
menu.php:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7" />
...
...
<title> static title here </title>
...
...
link1, link2, link3, linkX
...
and the functions.php which loading all the rest:
functions.php:
Code:
<?php
if(isset($_GET['something'])){
include("afile.php");
}
elseif(isset($_GET['about'])){
include("about.php");
}
...
...
etc
So if someone type a
www.domain.com/?about after the already
included menu, the file about.php will be included.
I tried to make this work:
eg after the isset to set a $title=something related
and in the menu.php which have the <title> to add:
Code:
<title><?php echo $title ?> </title>
but it didnt worked.
A friend told me that this should be BEFORE the menu.php
but I cant include functions before menu for logical reasons..
(I need the menu in the top of course)
I dont know if I can do this including a second functions like
php but in the if commands to set a title var only not include.
And generally I got confused with this.
Any ideas?
Regards,
Chris