I designed a website using isset for exploring it.
Example of index.php:
I got a static menu file something like this:
<!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">
<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:
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:
<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.