title: Why PHP form Handling Not Working
body: <p>I followed <a href="http://www.w3schools.com/php/php_forms.asp" rel="nofollow">w3schools</a> and created a form like bellow in my gen.php . I want to generate post by imputing information and I will copy and pest the generated html from textarea of gen-res.php.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Text Generator&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form action="gen-res.php" method="post" id="generator"&gt;
  App Name: &lt;input type="text" name="name"&gt;&lt;br&gt;
  App ID: &lt;input type="text" name="id"&gt;&lt;br&gt;
  Intro text:&lt;textarea name="intro" form="generator"&gt;&lt;/textarea&gt;
  Features:
  &lt;textarea name="feature" form="generator"&gt;
  &lt;ol&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
  &lt;/ol&gt;&lt;/textarea&gt;
  &lt;input type="submit" value="Generate"&gt;
  &lt;/form&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <p>And my gen.php is</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Epdroid App Generator&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  Generated!
  &lt;textarea&gt;&lt;div&gt; &lt;?php echo $_GET["name"]; ?&gt; &lt;/div&gt; &lt;div&gt; &lt;?php echo $_GET["intro"]; ?&gt; &lt;/div&gt; &lt;div&gt; ID:  &lt;?php echo $_GET["id"]; ?&gt; &lt;/div&gt; &lt;?php echo $_GET["feature"]; ?&gt; &lt;/textarea&gt;
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But the output is</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
      &lt;title&gt;Epdroid App Generator&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
  
      Generated!
      &lt;textarea&gt;&lt;div&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt; ID:   &lt;/div&gt;  &lt;/textarea&gt;
  
  
      &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>
  
  <p>So, Why this is not working and the variables are not passing?</p>