title: how do i submit a form with a default value using get if nothing is selected?
body: <p>this is my form : </p>
  
  <pre><code>$html = "";
  $html .= "&lt;div id='options'&gt;";
  $html .= "&lt;form action='filter.php' method='get'&gt;";
  $html .= "&lt;select multiple='multiple' name='options'&gt;";
  foreach($selectValues as $option){
      $html .= "&lt;option value='$option'&gt;$option&lt;/option&gt;";
  }
  $html .= "&lt;/select&gt;&lt;input type='submit' value='submit'&gt;&lt;/form&gt;&lt;/div&gt;";
  </code></pre>
  
  <p>but if i do not select an option from the box and i submit i get the error "Undefined index: options " i want to be able to submit and have it pass a defualt value if nothing is selected</p>