php form submission error
<pre><code>&lt;?php

require ("../Application.php");//session_start(); included in this file
 //init();
 ?&gt;
 &lt;?php
 $_SESSION['message']='';
 echo $_SESSION['key'].":".isset($_POST['submit']).":".$_POST['key'];
 if(isset($_POST['submit']) &amp;&amp; ($_SESSION['key'] == $_POST['key'])){
submit();
 }

 function submit(){
echo "submitted";
 }

 ?&gt;
 &lt;?php include("includes/headers.php");?&gt;

 &lt;div class="main"&gt;
 &lt;h1&gt;Employee Details&lt;/h1&gt;
 &lt;div class="message"&gt;&lt;?=$_SESSION['message'];?&gt;&lt;/div&gt;
 &lt;form name="adduser" action="add.php" method="POST"&gt;
 &lt;div class="fileds"&gt;
 &lt;div&gt;&lt;label for="code"&gt;Employe code&lt;i&gt;(6 digit)&lt;/i&gt;&lt;/label&gt;&lt;/div&gt; &lt;input type="text" name="code" maxlength="6" id="code" /&gt;
 &lt;/div&gt;


 &lt;div class="fileds"&gt;
 &lt;div&gt;&lt;label for="fname"&gt;First Name&lt;/label&gt;&lt;/div&gt; &lt;input type="text" name="fname" /&gt;
 &lt;/div&gt;

 &lt;div class="fileds"&gt;
 &lt;div&gt;&lt;label for="mname"&gt;Middle Name&lt;/label&gt;&lt;/div&gt; &lt;input type="text" name="mname" /&gt;
 &lt;/div&gt;

 &lt;div class="fileds"&gt;
 &lt;div&gt;&lt;label for="lname"&gt;Last Name&lt;/label&gt;&lt;/div&gt; &lt;input type="text" name="lname" /&gt;
 &lt;div&gt;&lt;label for="father_name"&gt;Father's Name&lt;/label&gt;&lt;/div&gt; &lt;input type="text"       name="father_name" /&gt;
 &lt;div class="fileds"&gt;
 Status: &lt;select name="status" &gt;
 &lt;option value="1"&gt;Active&lt;/option&gt;
 &lt;option value="0"&gt;Inactive&lt;/option&gt;
 &lt;/select&gt;
 &lt;/div&gt;
 &lt;?php
 $key=md5(rand(0,9999999));
 $_SESSION['key']=$key;
 //echo "&lt;br&gt;".$_SESSION['key'];
 ?&gt;
 &lt;input type="hidden" name="key" value="&lt;?=$key?&gt;" /&gt;
 &lt;br&gt;&lt;br&gt;
 &lt;input type="submit" name="submit" value="Save" &gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;input type="reset" name="clear all" value="clear all" /&gt;
 &lt;/div&gt;

 &lt;/form&gt;
 &lt;/div&gt;
 &lt;?php include("includes/footer.php");?&gt;
</code></pre>

<p>Form is not submitting, dont know what happend. It was working earlier but now.. :(</p>

<p>any please check this, where am wrong????
Edit</p>
