title: HTML Selected Value If Statement PHP
body: <p>I'm planning on making a website that has a function like this: <a href="http://www.hwcompare.com/category/gpu/" rel="nofollow">http://www.hwcompare.com/category/gpu/</a></p>
  
  <p>And I can't get the code sorted out to display a picture, some text and some benchmarks I want based on the value the user has selected.</p>
  
  <p>HTML code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt; Compare Master - The Master at System Comparison! &lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  Select a GPU you want to compare: &lt;br&gt;
  &lt;form action="compare.php" method="GET"&gt;
  &lt;select name="lelo" id="lelo"&gt;
   &lt;optgroup label="Radeon HD Series"&gt;
    &lt;option value="Radeon 3470"&gt;Radeon HD 3470&lt;/option&gt;
    &lt;option value="Radeon 3650"&gt;Radeon HD 3650&lt;/option&gt;
   &lt;/optgroup&gt;
   &lt;optgroup label="Radeon R7 Series"&gt;
    &lt;option value="R7 240"&gt;Radeon R7 240&lt;/option&gt;
    &lt;option value="R7 250"&gt;Radeon R7 250&lt;/option&gt;
   &lt;/optgroup&gt;
  &lt;/select&gt;
  &lt;br&gt;&lt;input type="submit" name="submit" value="Submit your selections" /&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>and my PHP code:</p>
  
  <pre><code>&lt;?php
      $gpu1 = $_GET['lelo'];
  echo $gpu1;
  ?&gt;
  </code></pre>
  
  <p>And I want my PHP to work like.. example: if (option value = 'R7 240') {
  display R7 240 image + R7 240 specifications }</p>