i have a page.
in the <title> </title> tags you can have the title of the page ie
<title>your website - home</title>
-
i have my links as something like:
index.php?p=contact
and in the title i have something like:
<title>your website - <?=$_GET[p]?></title>
this gets whats at p and displays it in the title so it would look like:
your website - contact
BUT
when a user first enters my url.. eg. www.mysite.com/
there is no index.php?p=page till the user clicks a page.
i think its because of this i am getting an error:
<br />
<b>Notice</b>: Use of undefined constant p - assumed 'p' in <b>c:\program files\easyphp1-7\www\img\index.php</b> on line <b>13</b><br />
<br />
<b>Notice</b>: Undefined index: p in <b>c:\program files\easyphp1-7\www\img\index.php</b> on line <b>13</b><br />
in the title bar
i cant seem to fix it... when the user enters the site there wont be no ?p=page so how can i get it to display home automatically and change when they click a different page