Errors code and wont work in PHP
<p>I did post something earlier put this time I am going to post all of it.I am getting error message and it will not show up when i try to pull it up on local host.
Here's the code:</p>

<p>This one is includeindex.php
    

<pre><code>  if ($_POST['submit']!=""){
if ($_POST['name']!=""){
session_start();
$_SESSION['name']=$_POST['name'];
TopNavigation("PHP Includes Example - ECA236","PHP Includes",$_SESSION['name']);
}
else{
    header("Location:includindex.php");
    exit;
 }
 }
else{
TopNavigation("PHP Includes Example - ECA236","PHP Includes");
echo "&lt;div class=\"formtable\"&gt;\n";
echo "&lt;br&gt;";
echo "&lt;form action=\"".$PHP_SELF."\" method=\"post\"&gt;\n";
echo "Please enter your name:&lt;input type=\"text\" name=\"name\"&gt;\n";
echo "&lt;input type=\"submit\" class=\"btnSubmit\" value=\"Enter\" name=\"submit\"&gt;\n";
echo "&lt;/form&gt;\n";
echo "&lt;br&gt;";
echo "&lt;/div&gt;\n";
Footer();
 }

?&gt;
</code></pre>

<p>This one is header</p>

<pre><code> &lt;?php

  function TopNavigation($pagetitle,$pageheading,$username=''){
echo "&lt;html&gt;\n";
echo "  &lt;head&gt;\n";
echo "  &lt;title&gt;".$pagetitle."&lt;/title&gt;\n";
echo "  &lt;link href=\"../style.css\" type=\"text/css\" rel=\"stylesheet\"&gt;";
echo "  &lt;/head&gt;\n";
echo "  &lt;body&gt;";
echo "      &lt;h1&gt;".$pageheading."&lt;/h1&gt;\n";
echo "      &lt;hr&gt;\n";
echo "      &lt;p class=\"tiny\"&gt;".date("F j,Y")."&lt;/p&gt;";
if ($username!=''){
    echo "&lt;div align=\"center\"&gt;\n";
    echo "&lt;a href=\"includeindex.php\"&gt;Use a different name&lt;/a&gt; | &lt;a href=\"about.php\"&gt;About&lt;/a&gt; | &lt;a href=\"signout.php\"&gt;Signout&lt;/a&gt;\n";
    echo "&lt;/div&gt;\n";
    echo "&lt;p&gt;Welcome. ".$username."!";
}
  }

 function Footer(){
 echo "&lt;/body&gt;\n";
 echo "&lt;/html&gt;\n";

  }
 ?&gt;
</code></pre>

<p>This one is about.php</p>

<pre><code>&lt;?php
session_start();
include("include/header.php");
if (!isset($_SESSION['name'])){;
 header("Location:includeindex.php");
 exit;
 } 
else {
 TopNavigation("About Me -ECA236","About Me",$_SESSION['name']);

echo "&lt;p&gt;Here is a little about me. I am a mother of twin girls who are 9 &lt;/p&gt;\"n;
echo "&lt;p&gt;I been married for 5 years but been with my husband for 11 years &lt;/p&gt;\"n;
echo "&lt;p&gt;I am attending college for Computer Programming and Database Mangament&lt;/p&gt;\"n;
echo "&lt;p&gt;After I get done with this degree I am want to go back for Web Design &lt;/p&gt;\"n;
echo "&lt;p&gt;since half my classes are web design now. I enjoy camping,bon fires and  &lt;/p&gt;\"n;
echo "&lt;p&gt;playing video games, hanging out with friends and family.&lt;/p&gt;\"n;
Footer();
 }

 ?&gt;
</code></pre>

<p>This one is signout.php</p>

<pre><code>&lt;?php
session_start();
if (isset($_SESSION['name'])){
session_destroy();
 session_start();
 }
 header("Location:includeindex.php");
 exit;
 ?&gt;
</code></pre>

<p>I can not get it to show up and work at all. I have no clue why it is not doing it. Can someone please help me.</p>

<p>I keep getting errors no matter what I fixed and it doesnt show up when you look at it online..</p>

<p>here the errors i get:
Notice: Undefined variable: PHP_SELF in C:\wamp\www\includeindex.php on line 19
Undefined index: submit in C:\wamp\www\includeindex.php on line 4
Warning: include(include/header.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\about.php on line 3
Warning: include() [function.include]: Failed opening 'include/header.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\about.php on line 3
Fatal error: Call to undefined function TopNavigation() in C:\wamp\www\about.php on line 9</p>
