title: Executing this PHP program?
body: <p>I am not able to get this program working. I'm sure I have all the correct syntax, brackets etc... However, it just spits out code that is put into it, am I missing anything?</p>
  
  <p>The program should post upon itself from the post method, after executing a JavaScript program.</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html lang="EN" dir="ltr" xmin="http://www.w3.org/1999/xhtml"&gt;
      &lt;head&gt;
          &lt;meta http-equiv="content-type" content="text/xml; charset=utf-8" /&gt;
          &lt;title&gt;Site.php&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;form id="myform" method="Post" action="Site.php"&gt;
              &lt;center&gt;&lt;table&gt;&lt;tr&gt;
                          &lt;td align="center"&gt;&lt;input type="text" name="mo" value="&lt;?php echo $_SESSION['mo']; ?&gt;" size="4"/&gt;&lt;/td&gt;
                          &lt;td align="center"&gt;&lt;input type="text" name="dy" value="&lt;?php echo $_SESSION['dy']; ?&gt;" size="4"/&gt;&lt;/td&gt;
                          &lt;td align="center"&gt;&lt;input type="text" name="yr" value="&lt;?php echo $_SESSION['yr']; ?&gt;" size="4"/&gt;&lt;/td&gt;
                          &lt;td align="center"&gt;&lt;input type="text" name="hr" value="&lt;?php echo $_SESSION['hr']; ?&gt;" size="4"/&gt;&lt;/td&gt;
                          &lt;td align="center"&gt;&lt;input type="text" name="mn" value="&lt;?php echo $_SESSION['mn']; ?&gt;" size="4"/&gt;&lt;/td&gt;
                          &lt;td align="center"&gt;&lt;input type="text" name="sc" value="&lt;?php echo $_SESSION['sc']; ?&gt;" size="4"/&gt;&lt;/td&gt;
                      &lt;/tr&lt;/table&gt;&lt;/center&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  
  &lt;?php
  $mo = filter_input(INPUT_POST, "mo");
  $dy = filter_input(INPUT_POST, "dy");
  $yr = filter_input(INPUT_POST, "yr");
  $hr = filter_input(INPUT_POST, "hr");
  $mn = filter_input(INPUT_POST, "mn");
  $sc = filter_input(INPUT_POST, "sc");
  
  session_start();
  
  $_SESSION['mo'] = $mo;
  $_SESSION['dy'] = $dy;
  $_SESSION['yr'] = $yr;
  $_SESSION['hr'] = $hr;
  $_SESSION['mn'] = $mn;
  $_SESSION['sc'] = $sc;
  $_SESSION['count'] = $count;
  
  session_write_close();
  ?&gt;
  </code></pre>