title: Beginner php "Warning: Undefined array key"
body: <p>So, I'm learning PHP and I keep getting &quot;Warning: Undefined array key&quot; in $GET_[&quot;fname&quot;] and  $GET_[&quot;age&quot;]:</p>
  <pre><code>&lt;main&gt;
  
      &lt;form action=&quot;inputs.php&quot; method=&quot;get&quot;&gt;
          Name: 
          &lt;br/&gt;
          &lt;input type=&quot;text&quot; name=&quot;fname&quot;&gt;
          &lt;br/&gt;
          Age:
          &lt;br/&gt;
          &lt;input type=&quot;number&quot; name=&quot;age&quot;&gt;
          &lt;br/&gt;
          &lt;input type=&quot;submit&quot; name=&quot;submit&quot;&gt;
  
      &lt;/form&gt;
          &lt;br/&gt;
          Your name is &lt;?php echo $_GET[&quot;fname&quot;]; ?&gt;
          &lt;br/&gt;
          Your age is &lt;?php echo $_GET[&quot;age&quot;]; ?&gt;
  
  &lt;/main&gt;
  </code></pre>