title: how to get meta tags with php, but with html form
body: <p>I got this PHP <code>src</code>:</p>
  
  <pre><code>$tags = get_meta_tags('http://www.autostraddle.com');
  echo "CMS is: ";
  echo $tags['generator'];
  </code></pre>
  
  <p>This code is not user friendly; it's not ready for one online tool for my website, because I want create a simple service - CMS detector, and...</p>
  
  <pre><code>$tag = isset($_REQUEST['url']) ? get_meta_tags('url') : '';
  
  
  &lt;form action="index.php" method="post"&gt;
  &lt;input type="text" name="url" size="65" value="&lt;?php echo $tag;  ?&gt;"/&gt;&lt;br /&gt;
  &lt;input type="submit" value="Go!"&gt;
  
  echo $tag['generator'];
  </code></pre>
  
  <p>I want create one online tool about detecting what CMS is, but I need this PHP script with HTML form because this will be used from users, and not only from me. </p>
  
  <p>They must put any url, and then the script will perform as described to get the meta tag 'generator'; how do I get the meta tag 'generator'? I want only this meta tag.</p>
  
  <p>Well, and how to do this with 'if else'? if there is meta tag generator do this, but if there is not such tag 'generator', then write any 'echo' message, e.g.</p>
  
  <blockquote>
    <p>CMS is not known.</p>
  </blockquote>
  
  <p>Well, this is simple PHP script, but I don't know how to create variables and how to get a URL; mayve with cURL?</p>