title: Change color based on choice on dropdown and store in cookie
body: <p>I have a dropdown menu with 4 different color combos. They are suppose to change background color, font and font size. I have it set up how I think it is suppose to go but when I hit submit nothing currently happens. After they hit submit the choice is suppose to save in a cookie.  </p>
  
  <pre><code>&lt;select name="userColorChoice"&gt;
      &lt;option value="default"&lt;?php if ($color =="default"){ echo "selected='selected'";}?&gt;&gt;Default&lt;/option&gt;
      &lt;option value="highContrast"&lt;?php if ($color =="highContrast"){ echo "selected='selected'";}?&gt;&gt;High Contrast&lt;/option&gt;
      &lt;option value="comboTwo"&lt;?php if ($color =="comboTwo"){ echo "selected='selected'";}?&gt;&gt;Color Combo 2&lt;/option&gt;
      &lt;option value="comboThree"&lt;?php if ($color =="comboThree"){ echo "selected='selected'";}?&gt;&gt;Color Combo 3&lt;/option&gt;
      &lt;input type="submit" name="submitColor"&gt;
  &lt;/select&gt;
  
  
  //COOKIE PART
  $color = "default";
  if (isset($_GET['submitColor'])){
      setcookie("langCookie", "unimportant",time()-2000);
      header("Location:trivia.php");
  }
  
  
  if (isset($_POST['userColorChoice'])){
      $color=$_POST['userColorChoice'];
      setcookie("langCookie",$color,time()+2000000);
  } else if(isset($_COOKIE['langCookie'])){
      $color = $_COOKIE['langCookie'];
  } else{
      $color = "default";
  }
  
  
   //switch statement to set values based on the user selection
  switch ($color){
      case"default":
          echo '&lt;body style="background-color:white"&gt;';
          echo '&lt;body style="color:black"&gt;';
          echo '&lt;body style="font-size:medium"&gt;';
          break;
      case "highContrast":
          echo '&lt;body style="background-color: red"&gt;';
          echo '&lt;body style="color:black"&gt;';
          echo '&lt;body style="font-size:x-large"&gt;';
          break;
      case"comboTwo":
          echo '&lt;body style="background-color:black"&gt;';
          echo '&lt;body style="color:white"&gt;';
          echo '&lt;body style="font-size:large"&gt;';
          break;
      case"comboThree":
          echo '&lt;body style="background-color:red"&gt;';
          echo '&lt;body style="color:blue"&gt;';
          echo '&lt;body style="font-size:medium"&gt;';
          break;
      default:
          echo '&lt;body style="background-color:white"&gt;';
          echo '&lt;body style="color:black"&gt;';
          echo '&lt;body style="font-size:medium"&gt;';
          break;
  }
  </code></pre>