title: Undefined variable: POST in C:\wamp\www\forms.php
body: <p>The following code doesn't work.  <code>forms.php</code> and <code>forms.html</code> are the file names, both saved in the root directory.  </p>
  
  <p>The error is "<code>Undefined variable: POST in C:\wamp\www\forms.php</code>".  I know I'm not handling multiple inputs properly, either. Can anyone help with either of these?</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;
  Registration for Placement
  &lt;/title&gt; 
  &lt;/head&gt;
  
  
  &lt;body&gt;
  &lt;h1&gt; Start your Placement process...NOW...&lt;/h1&gt;
  &lt;form action = "forms.php" method = "POST"&gt;
  &lt;p&gt; Name &lt;input name = "Name" type = "Text" size = "20" maxlength = "30"&gt;
  &lt;p&gt; Branch: CSE&lt;input name = "branch" type = "radio" &gt;
              ECE&lt;input name = "branch" type = "radio"&gt;
              MEC&lt;input name = "branch" type = "radio"&gt;
  &lt;p&gt; Languages Known:English&lt;input name ="lang[]" type = "checkbox" value = "1"&gt;
                      Hindi&lt;input name = "lang[]" type = "checkbox" value = "2"&gt;
                      Tamil&lt;input name = "lang[]" type = "checkbox" value = "3"&gt;
  &lt;p&gt; State&lt;select name = "state" size = "2"&gt;
          &lt;option&gt; Jammu and Kashmir
          &lt;option&gt; Delhi
          &lt;option&gt; Tamil Nadu
          &lt;option&gt; M.P
          &lt;option&gt; U.P
          &lt;option&gt; Maharashtra
          &lt;/select&gt;
  &lt;p&gt; Thanks for submimitting the form
  &lt;p&gt;&lt;input type = "Submit" value = "enter" &gt;
      &lt;input type = "Reset" value = "clear"  &gt;
  
  
      &lt;/form&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Thank You&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;Thank You&lt;/h1&gt;
  &lt;p&gt;Thank you for registering. Here is the information you submitted:&lt;/p&gt;
  
  &lt;p&gt;Name &lt;/p&gt;&lt;p&gt;&lt;?php echo  $POST['Name']; ?&gt;&lt;/p&gt;
  &lt;p&gt;Branch &lt;/p&gt;&lt;p&gt;&lt;?php echo $POST["branch"];?&gt;&lt;/p&gt;
  &lt;p&gt;Lang &lt;/p&gt;&lt;p&gt;&lt;?php echo $POST["lang[0]"];?&gt;&lt;/p&gt;
  &lt;p&gt;STATE &lt;/p&gt;&lt;p&gt;&lt;?php echo $POST["state"];?&gt;&lt;/p&gt;
  
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>