undefined index error
<p>i am getting following errors:</p>

<blockquote>
  <p>Undefined index: txt_age in C:\wamp\www\Site\form1.php on line 12
  ,Undefined index: txt_event in C:\wamp\www\Site\form1.php on line 16
  &amp;Undefined index: txt_amalthea in C:\wamp\www\Site\form1.php on line
  21</p>
</blockquote>

<p>I have even checked corresponding id's in my form tags they are same</p>

<pre><code>&lt;?php
 $con = mysql_connect("localhost","root");
 if (!$con)
   {
   die('Could not connect: ' . mysql_error());
}


 mysql_select_db("amalthea", $con);

  $name=$_POST['txt_name'];
  $age=$_POST['txt_age'];

  $cell=$_POST['cell'];

  $event=$_POST['txt_event'];

    $college=$_POST['txt_college'];
   $qual=$_POST['qual'];

  $about=$_POST['txt_amalthea'];

    $members=$_POST['txt_members'];
   $email=$_POST['txt_email'];

  $sql="insert into at              values('$name','$age','$cell','$event','$college','$qual','$about','$members','$email')";


 if($sent)
 {
   echo "done";
  }
  else
 {
  echo "Dasf";
   }

    mysql_close($con);
  ?&gt;
</code></pre>

<p>my form code is</p>

<pre><code>       &lt;html&gt;
     &lt;head&gt;

&lt;style&gt;
.me
   {
  border-style:solid;
  border-color:black;
   }
   &lt;/style&gt;
   &lt;/head&gt;
   &lt;h1&gt; Registration&lt;h1&gt;  
  &lt;br/&gt;
  &lt;body  bgcolor=" #F0F8FF"&gt;

  &lt;form name = "form1" id="form1" method="post" enctype="multipart/form-data"    action="form1.php" onsubmit="return validateform()" &gt;
 &lt;table&gt;


&lt;tr&gt;&lt;td&gt;Name &lt;td&gt;:&lt;/td&gt;&lt;/td&gt; &lt;td&gt;&lt;input type = "text" name = "txt_name" id = "txt_name"/&gt;&lt;/td&gt;&lt;/tr&gt;
 &lt;!--Branch : &lt;input type = "text" name = "txt_branch" id = "txt_branch" /&gt;--&gt;

&lt;tr&gt;
&lt;td&gt;Age &lt;td&gt;:&lt;/td&gt; &lt;/td&gt;&lt;td&gt;&lt;input type="int" name="txt_age" id="txt_age"/&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;Contact no.&lt;td&gt;:&lt;/td&gt;&lt;/td&gt;&lt;td&gt;&lt;input id="cell" type="text" name="cell"/&gt;&lt;/td&gt;
 &lt;/tr&gt;

&lt;tr&gt;&lt;td&gt;College&lt;td&gt;:&lt;/td&gt;&lt;/td&gt; &lt;td&gt;&lt;input type = "text" name = "txt_college" id =      "txt_college"/&gt;&lt;/td&gt;&lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;Qualifications&lt;/td&gt;&lt;td&gt;:&lt;/td&gt; &lt;td&gt;&lt;textarea  id="qual" name="qual"  rows = "5"  cols = "17" scroll = "scroll" &gt;&lt;/textarea&gt;
&lt;/td&gt;
&lt;/tr&gt;

 &lt;tr&gt;&lt;td&gt;How you came to know about&lt;/td&gt;&lt;td&gt;:&lt;/td&gt;&lt;td&gt;&lt;textarea id="txt_amalthea" rows="5" cols="17" type="text"&gt;  &lt;/textarea&gt;&lt;/td&gt;&lt;/tr&gt; 

   &lt;tr&gt;&lt;td&gt;Events you want to participate&lt;/td&gt;&lt;td&gt;:&lt;/td&gt;&lt;td&gt;&lt;textarea rows="5" cols="17" type="text" id="txt_event"&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;/tr&gt;  

   &lt;/tr&gt;
   &lt;tr&gt;&lt;td&gt;Number of team members (if applicable)&lt;td&gt;:&lt;/td&gt;&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="txt_members" id="txt_members"/&gt;
   &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;Email Id&lt;td&gt;:&lt;/td&gt;&lt;/td&gt;&lt;td&gt;&lt;input type="text" name="txt_email" id="txt_email"/&gt;
   &lt;/td&gt;
  &lt;/tr&gt;
   &lt;tr&gt;&lt;td &gt;&lt;input class="me" type = "submit" value="Submit" &gt;&lt;/td&gt;
  &lt;td&gt; &lt;input class="me"  type = "reset" name = "btn_reset" id = "btn_reset"  value="reset" /&gt;
&lt;/td&gt;&lt;/tr&gt;
 &lt;/table&gt;
</code></pre>

<p></p>

<pre><code>&lt;/head&gt;
 &lt;/html&gt;
</code></pre>
