title: Undefined index: type in C:\wamp\www\submit.php on line 4
body: <p>Hi I have problem with undefined index.
  in google chrome and mozilla it shows the notice but everything works fine in explorer it doesnt work.
  my PHP version is 5.3.5.</p>
  
  <p>The code: HTML file </p>
  
  <pre><code>&lt;div id="stylized" class="myform"&gt;
      &lt;form action="submit.php" method="post" id="Form"&gt;
          &lt;ol&gt;
              &lt;label for="number"&gt;number:&lt;/label&gt;
              &lt;input name="number" class="text" type="text" size="28"/&gt;
              &lt;div id="butt"&gt;
                  &lt;input type="hidden" style="width: 150px; border: 1px solid gray" value="addd" name="type" /&gt;
                  &lt;input type="submit" class="formbutton" value="add" /&gt;
              &lt;/div&gt;
              &lt;div id="error"&gt;&amp;nbsp;&lt;/div&gt;
          &lt;/ol&gt;
          &lt;div class="spacer"&gt;&lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>SUBMIT FILE submit.php</p>
  
  <pre><code>switch ($_POST['type']){
      case "register":
          register();
          break;
      case "login":
          login();
          break;
      default:
          die(msg(0, "error"));
  }
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>Notice: Undefined index: type in C:\wamp\www\submit.php on line 4
  </code></pre>
  
  <p>I already have tried:</p>
  
  <pre><code>if (isset($_POST['type']))
   $type = $_POST['type'];
  </code></pre>
  
  <p>and many other suggestions found on other topics but it doesnt seem to be helping in this case</p>