title: selected dropdown reload page and get value
body: <p>how do i make the page reloaded if i choose selected dropdown ? </p>
  
  <p>assume there is a dropdown look like this </p>
  
  <pre><code>&lt;select name="selectyear"&gt;
      &lt;option value="2000"&gt;2000&lt;/option&gt;
      &lt;option value="2000"&gt;2001&lt;/option&gt;
      &lt;option value="2000"&gt;2002&lt;/option&gt;
      &lt;option value="2000"&gt;2003&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>and a query like this</p>
  
  <pre><code>SELECT * FROM TABLEYEAR WHERE YEAR = 2014  
  </code></pre>
  
  <p>and if i choose <code>2000</code> </p>
  
  <p>the page will reload and the url will look like this</p>
  
  <pre><code>http://www.dashboard.php?year=2000
  </code></pre>
  
  <p>and the query also will change</p>
  
  <pre><code>SELECT * FROM TABLEYEAR WHERE YEAR = 2000
  </code></pre>
  
  <p>i really appreciate the help..</p>
  
  <p>this is my dropdown look likes ..</p>
  
  <pre><code>&lt;select class="chzn-select deselect" name="selectyear" style="width:150px;" data-placeholder="Select year"&gt;
  &lt;option value=""&gt;&lt;/option&gt;
  &lt;?php
  $date = date("Y");
  for($i = $date-10;$i&lt;$date+5;$i++)
  {
  ?&gt;
  &lt;option value="&lt;?php echo $i; ?&gt;"&gt;&lt;?php echo $i; ?&gt;&lt;/option&gt;
  &lt;?php   
  }
  ?&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>and this is the query .. i dont know how to put the <code>if</code> statement for the query if none is selected, then display this year . if it selected, display the selected year.</p>
  
  <pre><code>$id = $_GET['year'];
  
  $date = date("Y");
  
  
  $query = mysql_query("select * from visimisi where year = '$id'");
  </code></pre>