selectname = $selectname; $this->default_year = $default_year; $this->year = new Select($selectname); } function SetName($selectname) { $this->selectname = $selectname; } function GetName() { return($this->selectname); } function SetStartYear($start_year) { if ($this->end_year < $start_year) { $this->start_year = $this->end_year; } else { $this->start_year = $start_year; } } function SetEndYear($end_year) { if ($this->start_year > $end_year) { $this->end_year = $this->start_year; } else { $this->end_year = $end_year; } } function SetDefaultYear($default_year) { $this->default_year = $default_year; } // this is where I got to. function Render() { for ($this->cnt = $this->start_year; $this->cnt <= $this->end_year; $this->cnt++) { if($this->cnt == $this->default_year) { $this->year->AddOptionSelected($this->cnt, $this->default_year); } else { $this->year->AddOption($this->cnt, $this->cnt); } } $this->year->SetSize(1); $this->year->Render(); } }