title: Getting PHP to display radio button information
body: <p>I would like to have several radio button to display information for a dynamic webpage. I have (in PHP):</p>
  
  <pre><code>echo '
      &lt;html&gt;
          &lt;head&gt;
              &lt;title&gt; Dynamic PHP &lt;/title&gt;
          &lt;/head&gt;
          &lt;body&gt;
              &lt;form action="dynamic.php" method="get"&gt;
                  &lt;input type="radio" name="dynamic" value="home" checked&gt; Home &lt;/br&gt;
                  &lt;input type="radio" name="dynamic" value="site1"&gt; Site 1 &lt;/br&gt;
                  &lt;input type="radio" name="dynamic" value="site2"&gt; Site 2
              &lt;/form&gt;
  
          &lt;/body&gt;
      &lt;/html&gt;
  ';
  
  if (isset($_GET["home"])){
      echo "Home";
  }
  if (isset($_GET["site1"])){
      echo "Site 1";
  }
  if (isset($_GET["site2"])){
      echo "Site 2";
  }
  </code></pre>
  
  <p>I don't get any errors, but nothing happens either. Thanks a lot.</p>
  
  <p>Edit: This is like what I'm asking: <a href="https://stackoverflow.com/questions/2580614/radio-button-value-in-php">radio button value in php</a></p>