select

mam jakis sentyment do tej funkcji zwracajacej htmlowego selecta

<?PHP

function selectTabs($selName, $tabs, $id, $cssLen=NULL)
{
  if ($css_len==NULL) $size = '150px';
  unset($sel);
  $select.='<select name="'.$selName.'" style="width:'.$cssLen.';" >';
  $select.="n";
  $select.='<option value="">'."</option>n";
  if ( count($tabs)>0)
  {
    foreach ($tablica as $key => $value) {
        $select.='<option ';
        if (trim($id) == trim($key)){ $select.=' selected ';}
          $select.='value="'.$key.'">'.$value."</option>n";
    }
    $select.='</select>';
    return $select;
  }
}
?>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Switch to our mobile site