"At my previous job," John S writes, "we had a good amount of formality in the development process. Business 'customers' would define requirements (or bugs), business analysts would write requirements to implement those, and we would write code against the requirements."

"When I took a new job at a small company, I knew the processes wouldn't be a little more 'casual', but I never quite expected this. Even the code is written casually, avoiding unnecessary formalities like arrays and loops."

<?php
$thisyear=date("Y");
$lastyear=date("Y")-1;
$lastlastyear=date("Y")-2;
$lastlastlastyear=date("Y")-3;
$lastlastlastlastyear=date("Y")-4;
$lastlastlastlastlastyear=date("Y")-5;
$lastlastlastlastlastlastyear=date("Y")-6;
$lastlastlastlastlastlastlastyear=date("Y")-7;
?>

<select name="year">

  <?php 
     if ($_REQUEST[year]==$thisyear) { 
       echo"<option selected=\"selected\"";
     } else {
       echo"<option";
     } ?> value="<?=$thisyear?>" selected>
    <?=$thisyear?>
  </option>

  <?php 
    if ($_REQUEST[year]==$lastyear){ 
      echo"<option selected=\"selected\"";
    } else {
      echo"<option";
    } ?> value="<?=$lastyear?>">
    <?=$lastyear?>
  </option>

  <?php
    if ($_REQUEST[year]==$lastlastyear){ 
      echo"<option selected=\"selected\"";
    } else {
      echo"<option";
    } ?> value="<?=$lastlastyear?>">
    <?=$lastlastyear?>
  </option>


  <?php 
    if ($_REQUEST[year]==$lastlastlastyear){ 
      echo"<option selected=\"selected\"";
    } else {
      echo"<option"
    } ;?> value="<?=$lastlastlastyear?>">
    <?=$lastlastlastyear?>
  </option>

  <?php 
    if ($_REQUEST[year]==$lastlastlastlastyear){
      echo"<option selected=\"selected\"";
    } else { 
      echo"<option";
    } ?> value="<?=$lastlastlastlastyear?>">
    <?=$lastlastlastlastyear?>
  </option>

  <?php 
    if ($_REQUEST[year]==$lastlastlastlastlastyear){
      echo"<option selected=\"selected\"";
    } else { 
      echo"<option";
    } ?> value="<?=$lastlastlastlastlastyear?>">
    <?=$lastlastlastlastlastyear?>
  </option>

  <?php 
    if ($_REQUEST[year]==$lastlastlastlastlastlastyear){ 
      echo"<option selected=\"selected\"";
    } else {
      echo"<option";
    } ?> value="<?=$lastlastlastlastlastlastyear?>">
    <?=$lastlastlastlastlastlastyear?>
  </option>

  <?php 
    if ($_REQUEST[year]==$lastlastlastlastlastlastlastyear){ 
      echo"<option selected=\"selected\"";
    } else {
      echo"<option";
    } ?> value="<?=$lastlastlastlastlastlastlastyear?>">
    <?=$lastlastlastlastlastlastlastyear?>
  </option>

</select>
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!