title: Undefined index in PHP errors
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4261133/php-notice-undefined-variable-and-notice-undefined-index">PHP: “Notice: Undefined variable”  and “Notice: Undefined index”</a><br>
    <a href="https://stackoverflow.com/questions/5676945/undefined-index-in-php">Undefined index in PHP</a>  </p>
  </blockquote>
  
  
  
  <blockquote>
    <p>Notice: Undefined index: NAME in C:\xampp\htdocs\pmsx\lib\config.php on line 107</p>
  </blockquote>
  
  <p>That's the exact error. Here's my code on the file. Thanks for those will help.</p>
  
  <p>here's my line 107:</p>
  
  <pre><code>//echo "&lt;br&gt;" . $cdata;
  // create the proper tree node if NAME attribute is set
  if ($this-&gt;attr["NAME"] != "")
      $this-&gt;tags[count($this-&gt;tags) - 1] = $this-&gt;attr["NAME"];
  </code></pre>
  
  <p><a href="http://pastie.org/5439059" rel="nofollow noreferrer">Pastie link</a></p>